Following the 1st Duke's execution for his part in the Wars of the Three Kingdoms in 1649, his brother, William, Earl of Lanark, inherited the titles and lands. William died from wounds received at the Battle of Worcester in 1651, whilst leading his regiment into some of the thickest of the fighting. In his will made at the Hague in 1650, he stipulated that the Lady Anne was his heir, over and above his own children,. Lady Anne became the Duchess of Hamilton, with the subsidiary titles Marchioness of Clydesdale, Countess of Arran, Lanark and Cambridge, the Lady Aven, Innerdale, Machanshire and Polmont. She succeeded to the Dukedom of Hamilton thanks to a remainder that stipulated, the Dukedom should devolve upon his brother and male heirs, and that the eldest daughter of the 1st Duke should succeed to the Dukedom only if her uncle died leaving no sons. Through paternal descent, Anne had a claim to the throne of Scotland, although this was dependent upon the failure of the House of Stewart. She was descended from James II through the marriage of the 1st Lord Hamilton to James's daughter Mary. Her great great grandfather, the 2nd Earl of Arran, had been heir presumptive from the death of Regent Albany until the birth of James VI, and had served as Regent of Scotland during the childhood and absence in France of Mary, Queen of Scots.
The Earl of Arran's father died in 1694, and in July 1698 his mother resigned all her titles into the hand of King William, who regranted them to Arran a month later in a charter signed at Het Loo, Netherlands. He was conferred with the titles: Duke of Hamilton, Marquess of Clydesdale, Earl of Arran, Earl of Lanark, Earl of Cambridge, Lord Aven, Polmont, Machansyre, and Innerdale. This regrant of title was presumably because of the loyalty of Arran's parents to the King, as his own affection to the House of Orange was questionable due to his suspected Jacobitism. The Duchess died at Hamilton on 17 October 1716, and is buried there, in the Bent Cemetery.
Building works
After her marriage the Duchess and her husband set about laying the foundations for what would be, under later Dukes, the largest private residence in the western hemisphere, Hamilton Palace. This was constructed on the site of what was commonly called either the 'Palace' or 'The Orchard', a courtyard style building in the "Low Parks of Hamilton". The Hamiltons had lived in the "Low parks" the more formal area of their estate, in the Clyde valley, since the fourteenth century. In 1684 she commissioned the architect, James Smith to remodel the existing buildings, removing the southern part of the previous courtyard building on the site and increasing the scale of the edifice to form a U-shaped mansion house. Today, the Palace is no more, and the "Low Parks" now form part of Strathclyde Park, having been given to the nation in lieu of death duties upon the passing of the 14th Duke of Hamilton in 1973. Another of the Duchess's works was the building of a new school building to house the Grammar School of Hamilton which had originally been endowed in 1588 by her great grandfather John Hamilton, 1st Marquess of Hamilton and sited near the churchyard adjoining Hamilton Palace. In 1714 the Duchess presented this new school building on the newly named Grammar School Square to the Town Council of Hamilton. The building remained in the school's use until 1848 when, as now the Hamilton Academy, the school relocated to a further purpose-built building. Duchess Anne's building of 1714 survived until its demolition in 1932, a plaque commemorating the site being subsequently erected by Hamilton Civic Society, the Hamilton family continuing as benefactors of the school