James made several attempts to regain the throne before his death in 1701, the most important of which was an effort he made with Irish support - that country having not yet acceded to the succession of William and Mary - which led to the Battle of the Boyne and the Battle of Aughrim, and set the stage for the subsequent Jacobite risings (or rebellions).