Western Australia is a state occupying the entire western third of Australia. It is bounded by the Indian Ocean to the north and west, and the Southern Ocean to the south, the Northern Territory to the north-east, and South Australia to the south-east. Western Australia is Australia's largest state, with a total land area of 2,529,875 square kilometres (976,790 sq mi), and the second-largest country subdivision in the world, surpassed only by Russia's Sakha Republic. The state has about 2.6 million inhabitants – around 11 percent of the national total – of whom the vast majority (92 per cent) live in the south-west corner, 79 per cent of the population living in the Perth area, leaving the remainder of the state sparsely populated.
The first European visitor to Western Australia was the Dutch explorer Dirk Hartog, who visited the Western Australian coast in 1616. The first European settlement of Western Australia occurred following the landing by Major Edmund Lockyer on 26 December 1826 of an expedition on behalf of the New South Wales colonial government. He established a convict-supported military garrison at King George III Sound, at present-day Albany, and on 21 January 1827 formally took possession of the western third of the continent for the British Crown. This was followed by the establishment of the Swan River Colony in 1829, including the site of the present-day capital, Perth.
York was the first inland settlement in Western Australia. Situated 97 kilometres (60 miles) east of Perth, it was settled on 16 September 1831.
Western Australia achieved responsible government in 1890 and federated with the other British colonies in Australia in 1901. Today, its economy mainly relies on mining, agriculture, exports, and tourism. The state produces 46 per cent of Australia's exports. Western Australia is the second-largest iron ore producer in the world.