More specifically, it's an interrogative pronoun. These are pronouns used to ask questions.
Here are some examples:
* Who is coming to the party?
* Whom did you meet at the conference?
* Whose car is this?
* What is your favorite color?
* Which book did you choose?