Ofis a preposition.
Ofcommonly introducesprepositional phrases which are complements of nouns,creating the pattern: noun +of+ noun. This pattern is very common, especially to indicate different parts, pieces, amounts and groups:
Lima is the capitalofPeru.
Twenty-four-hour TV news makes sure we all know the main eventsofthe day.
Would you like some more piecesoftoast?
We also commonly useofas a preposition after different adjectives (afraid of,generous of, proud of) and verbs (approve of,dream of, think of):
I never thought she could take a flight on her own at her age. I feel very proudofher.
Best of luck with the interview tomorrow. We’ll be thinkingofyou.
We use the structure determiner +of+ noun in expressions of quantity:
Mostofthe new workers in the country are from Turkey.
Someofmy best friends are computer scientists.
Ofis optional withall, both,halfexcept before the object pronounsme, you, it, him, her, us, them:
Both (of) the finance ministers have decided to resign.
Allofthem will be able to travel on the bus.
Not:All them will be able to…
See also:
All
Determiners (the, my,some,this)
Determiners used as pronouns
Possessives withof