Make up relative clauses. Put the preposition at the end of the clause.
If the verb in the relative clause requires a preposition, we normally put it at the end of the clause.
Examples
Jane, who I work with, bakes delicious cakes.
The city he comes from isn't as big as London.
The woman that I was talking to is Greg's wife.