William of Orange was invited to become the king of England because he was a Protestant and married to Mary, the daughter of James II. William and Mary ruled equally.