Prepositions and post positions, combined known as ad-positions, are a group of words USED to depict spatial or temporal relations or MARK different semantic roles.
Prepositions SHOW relationships between other words in a statement.
Many prepositions have many definitions, so the meaning alters quite a BIT in VARIOUS contexts.
Finishing a statement with a preposition is not taken as a grammatical error.