When the constitution for the Commonwealth of Australia was being negotiated between the colonies, Melbourne and Sydney each demanded that they become the capital. As a compromise, it was agreed that the capital would initially be Melbourne, until a new capital city could be built. This new capital city would be located in territory taken from New South Wales, and be 200 statute miles or more from Sydney. The present site was chosen and named Canberra in (1910?); the federal government officially moved there from Melbourne in 1926. At first most public service administration continued to be done in Melbourne, but the various departments were gradually moved to Canberra over the years.
The Australian Capital Territory is wholly surrounded by New South Wales. For administrative purposes, the Australian Capital Territory also incorporates the [Jervis Bay Territory]? (being a naval base on the NSW near the town of Jervis Bay), and the uninhabited external territories.