My children's dad.
My friend's parents.
It means the same as:
The dad of my children
The parents of my friend.
So, by using the apostrophe, you indicate possesion.
It's this order:
Who is the "owner" + 'apostrophe + "object".
Hope I could help you. :)