Australia has cancelled the citizenship of an Algerian-born Muslim cleric convicted of planning a series of terror attacks in 2005.
Abdul Nacer Benbrika was jailed for 15 years in 2009 and is eligible for release from next month.
But Home Affairs Minister Peter Dutton said it was "appropriate" to revoke his citizenship to protect Australians.
The move makes Benbrika the first person to be stripped of Australian citizenship while still in the country.
His lawyer has declined to comment on the government's decision, ABC News reports.
"If it's a person who's posing a significant terrorist threat to our country, then we'll do whatever is possible within Australian law to protect Australians," Mr Dutton told reporters in Brisbane.
Under Australian law, the government can only strip people of citizenship if they are dual citizens, ensuring they will not be left stateless.
Last year Australia's national security agency Asio raised concerns about this government power, saying it "may have unintended or unforeseen adverse security outcomes".
Benbrika, who has lived in Australia since 1989, was arrested in 2005 and convicted of being a member of a terrorist organisation and leading its activities.