a time when anti-Catholic sentiment ran high in much of Northern Europe and Great Britain. Sophia died shortly before her first cousin once removed, Anne, Queen of Great Britain, the last sovereign of the House of Stuart. Sophia's son George I succeeded Queen Anne and formed a personal union from 1714 between the British crown and the Electorate of Hanover, which lasted until well after the end of the Napoleonic Wars more than a century later, through the dissolution of the Holy Roman Empire and the rise of a new successor kingdom. The British royal family became known as the House of Hanover. Kingdom of Hanover The "Electorate of Hanover" (the core duchy) was enlarged with the addition of other lands and became the Kingdom of Hanover in 1814 at the Congress of Vienna. During the first half of the nineteenth century, the Kingdom was ruled as personal union by the British crown from its creation under George III of the United Kingdom, the last elector of Hanover until the death of William IV in 1837. At that point, the crown of Hanover went to William's younger brother, Ernest Augustus, Duke of Cumberland and Teviotdale under the Salic law requiring the next male heir to inherit, whereas the British throne was inherited by an elder brother's only daughter, Queen Victoria. Her offspring belong to the House of Saxe-Coburg and Gotha: in 1917 the name was changed to the House of Windsor. The Kingdom of Hanover was lost in 1866 by Ernest Augustus's son George V of Hanover, Austria's ally during the Austro-Prussian War, when it was annexed by Prussia after Austria's defeat and became the Prussian province of Hanover. The Welfs went into exile at Gmunden, Austria, where they built Cumberland Castle. Brunswick succession The senior line of the dynasty had ruled the much smaller principality of Brunswick-Wolfenbüttel, created the sovereign Duchy of Brunswick in 1814. This line became extinct in 1884. Although the Duchy should have been inherited by the Duke of Cumberland, son of the last king of Hanover, Prussian suspicions of his loyalty led the duchy's throne to remain vacant until 1913, when the Duke of Cumberland's son, Ernst August, married the daughter of Kaiser Wilhelm II and was allowed to inherit it. His rule there was short-lived, as the monarchy came to an end following the First World War in 1918. The Welf dynasty continues to