The German cases (Nominative, Accusative, Dative, Genitive) mark the (grammatical) functions of nouns in a sentence.
Now, what the heck does that mean?
Let's first take a look at the first three.
The Nominative marks the subject. The subject in a sentence is (more or less) the one executing the verb.
Example:
'The man is sleeping.'
'Der Mann schläft.'
--> 'The man' is executing the act of sleeping.
The Accusative and the Dative mark the object in a sentence.
There are basically two types of objects:
The direct object, marked by the Accusative, and the indirect object, marked by the Dative.
What this means becomes clearer with another Example:
'The man gives the bone to the dog'
'Der Mann gibt dem Hund den Knochen'