Answer:
Conjunction.
Step-by-step explanation:
We use before as a subordinating conjunction. We commonly use before with the past simple tense. It suggests that the second event happened soon after the first one. The before clause, which indicates the second action, can be at the end or at the beginning of the sentence( in conjunctions)