1. Noun: When referring to a long piece of writing, especially one submitted for a university degree, "thesis" is a noun.
Example: "She wrote her thesis on the history of the American Civil War."
2. Adjective: When used to describe something as relating to or based on a thesis, "thesis" functions as an adjective.
Example: "The thesis statement of the essay is clear and well-defined."