More specifically, it is a subordinating conjunction. This means it connects a dependent clause to an independent clause.
Here are some examples:
* He is taller than his brother. ("Than his brother" is the dependent clause)
* I would rather go to the beach than stay home. ("Than stay home" is the dependent clause)
"Than" is often used to make comparisons, but it can also be used to express preference or choice.