* Adjective: When describing something as being the 12th in a sequence. Example: "The twelfth month of the year is December."
* Noun: When referring to the number 12 itself, often in a specific context. Example: "The twelfth is a lucky number for me."
The part of speech depends on how it's used in the sentence.