Prime Minister Scott Morrison, whose conservative coalition government faces an election in the first half of 2022, said the law would protect Australians from online abuse and harassment.
"The online world should not be a wild west where bots and bigots and trolls and others can just anonymously go around and harm people and hurt people, harass them and bully them and sledge them," Morrison told reporters.
"That is not what can happen in the real world, and there is no case for it to be able to be happening in the digital world."