Specifically, it's a coordinating conjunction, which means it joins words, phrases, or clauses of equal grammatical rank.
For example:
* I want to eat pizza or pasta. (joins two noun phrases)
* She went to the store or the library. (joins two prepositional phrases)
* He is coming, or he is not. (joins two independent clauses)