Relative clauses
A relative clause starts with a relative pronoun that takes its gender and number from the noun and its case from its job in the clause, and its conjugated verb goes to the end.
The relative pronoun looks like the definite article: der, die, das, and die in the plural. It takes the gender and number of the noun it describes: die Tochter, die; der Bruder, der; das Buch, das.
Its case comes from its job in the relative clause. As the subject it is in the nominative: ein Bruder, der in Berlin wohnt. As the object it is in the Akkusativ, and only the masculine changes: der Pullover, den ich gekauft habe.
The conjugated verb goes to the end of the relative clause, and commas mark the clause off from the rest of the sentence. The Dativ forms and the relative clauses with a preposition are on the page Relative clauses with a preposition.