Before 1901, Australia consisted of six separate British colonies that developed stronger economic and social ties over time. As ideas about nationalism and democracy spread globally in the late 1800s, prominent Australians began advocating for a federation to unite the colonies into a single nation. After a few years of negotiations and referendums, the colonies agreed to unite as the self-governing Commonwealth of Australia in 1901.