When you use the dative prepositions, the definite article following them has to change to the dative like this: ...