He was replaced by his Protestant elder daughter , Mary II , and her husband , William III .
He was not replaced by his Roman Catholic son , James Francis Edward , but by his Protestant daughter and son-in-law , Mary II and William III ( William II of Scotland ) , who became rulers in 1689 .