I find the use of prepositions in any language — even English — to be complicated.
The preposition di is an important preposition in Italian, and it has a variety of uses
It is used to convey:
possession: L’auto di mia sorella è sporca. My sister’s car is dirty.