particle
direct object marker
Marks the direct object of a transitive verb. The most basic and frequent use of を.
本を読む。
I read a book.
particle
subject of causative
Marks the person made to do something in causative constructions. The causer is marked by が or は.
母は子供を買い物に行かせた。
The mother made her child go shopping.
particle
Marks a time span during which an action occurs, often with verbs like 過ごす, 暮らす, 生きる. Not used for a specific point in time.
夏休みを海外で過ごした。
I spent the summer vacation abroad.
particle
object of desire/like/hate
Marks the object of emotions or desires with adjectives like 好き, 嫌い, 欲しい, and verbs like 望む. In modern Japanese, が is also common for these, but を is used especially when the object is clearly acted upon or in subordinate clauses.
See also: が
私は猫を愛している。
I love cats.
The particle を derives from Old Japanese particle を, which originally marked an exclamatory or emphatic object. Its modern use as a direct object marker developed early and has remained stable.