An Australian politician has delivered a devastating blow to Australian PM Tony Abbott and his government in his final speech before Western Australian by-elections are set to take place.

Greens senator Scott Ludlam delivered his diatribe to an almost empty house but roused himself to give a memorable seven-minute speech criticising Abbott's premiership and his "blundering and technically illiterate" team.

Addressing Abbott directly, Ludlam offered an invitation to the prime minister to visit Western Austalia before warning: "Understand that you are now closer to Denpasar than to Western Sydney, in a state where an entire generation has been priced out of affordable housing.

"Recognise that you are standing in a place where the drought never ended, where climate change from land clearing and fossil fuel combustion is a lived reality that is already costing jobs, property and lives," he said.

Only one other senator was present in the house at the time of Ludlam's speech.

"Mr Prime Minister, at your next press conference we invite you to leave you excruciatingly boring three-word slogans at home. If your image of Western Australia is of some caricatured redneck backwater that is enjoying the murderous horror unfolding on Manus Island, you are reading us wrong," Ludlam continued.

"Every time you refer to us as the "mining state' as though the western third of our ancient continent is just Gina Rinehart's inheritance to be chopped, benched and blasted, you are reading us wrong.

"Just as the reign of the dinosaurs was cut short to their great surprise, it may be that the Abbott government will appear as nothing more than a thin, greasy layer in the core sample of future political scientists drilling back into the early years of the 21st century," he said.

Ludlam then turned his attention to Abbott's environmental and immigration policies.

"The fact that your only proposal for environmental reforms thus far is to leave minister Greg Hunt playing solitaire for the next three years while you outsource his responsibilities to the same premier who presides over the hark cull has been noted too."

He then declared that Abbott's policy towards asylum seekers was a "heartless racist exploitation of people's fears".

"Your determined campaign to provoke fear in our community – fear of innocent families fleeing war and violence in our region – in the hope that it would bring out the worst in Australians is instead bringing out the best in us," the senator concluded.