Das ist der Mann, mit dem ich arbeite.
English: That is the man with whom I work.
Relative clauses with prepositions in German are sentences where you give extra information about a noun, and the preposition (like 'with', 'for', 'about') comes before the relative pronoun (like 'which', 'that').
Use this structure when you want to add information about a noun and need a preposition (for example, to talk about people you work with, things you are interested in, or places you go to).
Das ist der Mann, mit dem ich arbeite.
English: That is the man with whom I work.
Hier ist das Buch, auf das ich warte.
English: Here is the book I am waiting for.
Sie kennt die Frau, über die wir gesprochen haben.
English: She knows the woman we talked about.
Das sind die Freunde, bei denen ich wohne.
English: Those are the friends I am staying with.