* Preposition: This is the most common use of "with." It shows the relationship between a noun or pronoun and another element in the sentence.
* Example: "He went to the park with his dog." ("With" shows the relationship between "He" and "his dog.")
* Adverb: "With" can sometimes modify a verb or adjective, telling us how or in what manner something is done.
* Example: "She answered the question with confidence." ("With" modifies "answered" by indicating how she answered.)
* Conjunction: "With" can join two parts of a sentence, often showing a simultaneous action or a relationship between two things.
* Example: "I ate my dinner with my friends." ("With" joins the actions of "ate" and "friends.")
Let me know if you have a specific sentence in mind, and I can help you determine the part of speech of "with" in that context!