Your question is very simple. So I give you a simple answer. It's not full one, of course.
Prepositions are function words marking relations between nouns and pronouns in a sentence.
You can easily find full explanations on the internet.
- For Teachers