I assume you are referring to England (rather than Scotland). I believe that the dynasty to follow the Stuarts technically was the House of Hanover. The last male Stuart monarch was James II. When he was, in effect, deposed, his successor was his daughter Mary, who was married to William, Prince of Orange, ruler of The Netherlands.