William III and Mary II ruled together because Parliament wanted to continue the direct line of Stuart monarchs through Mary but also have the powerful ally of the Netherlands through William.