Prepositions often come at the ends of clauses in English. This happens in several kinds of structure:
a) questions beginning what, who, where etc.
b) relative clauses