Dative is used for indirect objects. Answers the question "to whom? to what?". E.g. Give him an apple.