Burlington Heights, where Dundurn Castle and the Hamilton Military Museum now stand, was occupied by the British military from 1813 -1815. Built as a gate house by Sir Allan MacNab in the late 1830s atop a battery from the War of 1812, This building known as Battery Lodge, now houses The Hamilton Military Museum.
https://www.hamilton.ca/attractions/hamilton-civic-museums/hamilton-military-museum