Answer
Mary II became Princess of Orange when she married William III of Orange, who was the Stadholder of the United Provinces of the Netherlands. This title was given to her in recognition of her status as the daughter of King James II of England, who was also the King of Scotland and Ireland.