What Part of Speech is was?

Was is a verb that is used to indicated a state of being. The word ‘was’ is a part of the past tense’ to be’. Example, I was hungry, so I ate a peanut butter sandwich.