The particle を is the direct object marker in Japanese. It indicates the noun (or phrase) that receives the action of a transitive verb. It is written with the kana を but pronounced "o."
The most fundamental use of を is to mark what a verb acts upon – the thing being eaten, read, watched, made, etc.
Most transitive verbs (verbs that take an object) use を to connect to their object. If you can ask "what?" or "whom?" about the verb, the answer is typically marked with を.
を can also mark the place or path through/along which movement occurs. This is used with motion verbs like あるく歩く, はしる走る, とぶ飛ぶ, わたる渡る, and とおる通る.
In this usage, を does not mark a direct object but rather the route or area of movement.
を is used with verbs like でる出る (to leave), おりる降りる (to get off), and そつぎょう卒業する (to graduate from) to mark the place one leaves or departs from.
In casual conversation, を is often dropped when the object is clear from context.