Before Federation in 1901 five of the six separate colonies maintained their own naval forces for defence. The colonial navies were supported by the ships of the Royal Navy's Australian Station which was established in 1859. The separate colonies maintained control over their respective navies until 1 March 1901, when the Commonwealth Naval Forces was created.
New South Wales Naval Brigade
At the time of the Boxer Rebellion, naval brigades from New South Wales, Victoria, and South Australia, were part of the British contingent in the field force under General Alfred Gaselee, in the Gaselee Expedition, a successful relief by a multinational military force that in 1900 marched to Beijing and protect the diplomatic legations and foreign nationals in the city from attacks. The New South Wales Naval Brigade included 25 men from the New South Wales Marine Corps. (This unit was completely unrelated, except for its name, to the New South Wales Marine Corps, which accompanied the First Fleet and served between 1788 and 1791.)
New South Wales Naval Artillery Volunteers
During the early nineteenth century the New South Wales Government began construction of naval fortifications in Sydney Harbour. However, security was generally lax. In November 1839 the USS Vincennes was able to slip into Sydney Harbour un-noticed under the cover of darkness, much to the surprise of Sydney-siders the following morning. As Sydney was the major base for the Royal Navy in Australia, the New South Wales Government had no incentive to create their own naval force. This sense of security ended with the outbreak of the Crimean War and in 1854 the government asked for tenders for the construction of a gunboat to assist in the defence of Sydney. The vessel was named HMCS Spitfire and was the first naval vessel completed by an Australian colonial government. Although modified from an existing boat,Spitfire was nevertheless the first warship to be constructed in Australia. Spitfire remained in service with the New South Wales colonial navy until 1859 when she was given to Queensland.