As a noun: It refers to a hard, flat surface, typically made of concrete or asphalt, used for walking or driving on.
Example: "The children played on the pavement."
As an adjective: It describes something related to or resembling a pavement, often used in compound words.
Example: "The pavement stones were laid in a mosaic pattern."
So, the part of speech depends on how it is used in a sentence.