To show direction or distance
It is south of here.
The restaurant is within a mile of the church.
Used to show a connection or relationship
The Queen of England is Elizabeth II. Charles will be the next King of England.
He's the owner of the house.
That is property of the school. You can't take it!
She is the CEO of a large company.
We use the noun [Queen, owner, property, CEO] and then connect the relationship [England, house, school, large company] using 'of'.