 Sydney's earliest fortifications were built around Sydney Cove to protect the new colony of Sydney from attacks from non-British ships or convict uprisings.The first gun emplacement was built in 1801 on Middle Head (north of Obelisk Bay) during the Napoleonic wars.More permanent fortifications were built during the first half of the 19th century in response to feared foreign attacks and new threats to the British empire.