Understand the rule
Prepositions such as aus, bei, mit, nach, seit, von and zu take the dative. The definite articles are dem for masculine/neuter, der for feminine and den for plural. A plural noun usually adds -n if it can: mit den Freunden, but mit den Autos.
Choose the case from the preposition, not from whether someone is moving. Mit dem Zug uses dative even during a journey.
How to practise: read the examples once, cover the English meanings and try explaining the choice aloud. Next, complete all four questions before opening their answers.
Four German examples with English meanings
Notice the form that changes and the role it plays in each sentence.
Practice: fill in the gaps
Fill each gap with the dative definite article for the noun indicated in brackets. Try each question before opening the answer. Where another answer is possible, the explanation notes it. These are self-check exercises, not exam scoring.
Question 1. Ich komme aus ___ Bibliothek. (die)
Show answer and explanation for question 1
Answer: der
Aus takes dative; feminine die becomes der.
Question 2. Er wohnt bei ___ Onkel. (der)
Show answer and explanation for question 2
Answer: dem
Bei takes dative; masculine der becomes dem.
Question 3. Sie fährt mit ___ Straßenbahn. (die)
Show answer and explanation for question 3
Answer: der
Mit always takes dative, including in travel expressions.
Question 4. Wir lernen seit ___ Sommer. (der)
Show answer and explanation for question 4
Answer: dem
Seit takes dative; Sommer is masculine.
Use it in your own sentence
Describe going from the station to a friend's home, using von and zu.
Try writing your answer before reading the model below. Other natural answers are possible.
One possible answer
Ich gehe vom Bahnhof zu meiner Freundin.
Check your wording: Von and zu both require dative; vom contracts von dem.
What to practise next
Change the subject or noun in one model sentence. Check the verb form, case and word order before comparing it with the rule.
Try the gaps again on another day without reading the explanation first. If a choice is still unclear, use the linked grammar foundation before moving to another topic.