Another of the Duchess's works was the building of a new school building to house the Grammar School of Hamilton (in 1848 renamed the Hamilton Academy) 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 (see article Hamilton Academy.)