in, an, auf, über, vor, hinter, neben, unter, zwischen take dative (location) or accusative (direction).
Das Buch liegt auf dem Tisch. (Wo?)
The book is on the table.
Ich lege das Buch auf den Tisch. (Wohin?)
I put the book on the table.
Das Buch liegt auf dem Tisch. (Wo?)
1 / 2