mathematician and philosopher Gottfried Leibniz and the composers George Frideric Händel and Agostino Steffani. Shortly after George's accession to his paternal duchy, Prince William, Duke of Gloucester, who was second-in-line to the English and Scottish thrones, died. By the terms of the English Act of Settlement 1701, George's mother, Sophia, was designated as the heir to the English throne if the then reigning monarch, William III, and his sister-in-law, Anne, died without surviving issue. The succession was so designed because Sophia was the closest Protestant relative of the British royal family. Fifty-six Catholics with superior hereditary claims were bypassed. The likelihood of any of them converting to Protestantism for the sake of the succession was remote; some had already refused. In August 1701, George was invested with the Order of the Garter and, within six weeks, the nearest Catholic claimant to the thrones, the former king James II, died. William III died the following March and was succeeded by Anne. Sophia became heiress presumptive to the new Queen of England. Sophia was in her seventy-first year, thirty-five years older than Anne, but she was very fit and healthy and invested time and energy in securing the succession either for herself or for her son. However, it was George who understood the complexities of English politics and constitutional law, which required further acts in 1705 to naturalise Sophia and her heirs as English subjects, and to detail arrangements for the transfer of power through a Regency Council. In the same year, George's surviving uncle died and he inherited further German dominions: the Principality of Lüneburg-Grubenhagen, centred at Celle. Shortly after George's accession in Hanover, the War of the Spanish Succession broke out. At issue was the right of Philip, the grandson of King Louis XIV of France, to succeed to the Spanish throne under the terms of King Charles II of Spain's will. The Holy Roman Empire, the United Dutch Provinces, England, Hanover and many other German states opposed Philip's right to succeed because they feared that the French House of Bourbon would become too powerful if it also controlled Spain. As part of the war effort, George invaded his neighbouring state, Brunswick-Wolfenbüttel, which was pro-French, writing out some of the battle orders himself. The invasion succeeded with few lives lost. As a reward, the prior Hanoverian annexation of the Duchy of Saxe-Lauenburg by George's uncle was recognised by the British