William of Orange was chosen to replace James II because he was a Protestant (James was Catholic) and he was the husband of James' daughter Mary.