"I eat dinner."
The object particle を is used to mark the direct object. A direct object is a noun that receives the action of a (transitive) verb. In "I eat dinner", dinner is the noun that is receiving the action of being eaten. Therefore, it is the direct object of the sentence and is followed by the をobject particle marker.