ATHENS (Reuters) - Greece will demolish thousands of illegal buildings in response to the death of dozens of people who were unable to escape a maze of poorly planned streets in the country’s worst wildfire disaster.

Slideshow ( 2 images )

Prime Minister Alexis Tsipras, whose government has been accused of a slow response, said Greece must no longer allow illegal construction that has been common for decades in a country dogged by bureaucracy and corruption.

The demolition of 3,200 buildings will start immediately in the Attica region, which includes the capital Athens, he said.

“The chaos of unruly construction, which threatens human lives, can no longer be tolerated,” Tsipras said in a speech in the town of Lavrio, down the coast from Mati where at least 91 people died in the blaze on July 23.

Unlicensed constructions are a common feature of the Greek landscape where they even have a name: “afthereta”, or “arbitrary” buildings.

Built with apparent impunity, many are rubber stamped later under general amnesties, announced by successive governments in what critics say is a crude but effective way to wield power and gain votes.

Authorities say there were dozens of such buildings in Mati, where people were trapped, with routes to the coast walled off -- illegal under Greek law.

Tsipras said anyone in the process of building unlicensed constructions would be compelled to demolish them.

The disaster has had political repercussions. The head of the civil protection department resigned on Monday, a day after the government replaced the chiefs of the police and the fire brigade.

The civil protection minister resigned on Friday after saying he believed there had been few flaws with the way emergency services tackled the blaze, fueled by winds blowing at 120 km (70 miles) an hour.

Tsipras’s administration has rejected opposition claims that authorities were napping on the job, saying unlicensed building had thrived under previous governments.

“I would have expected at least the tiniest bit of self-criticism from those who, along with their families, ran the country for more than four decades - not two, three or five years,” said Tsipras, a leftist politician elected in 2015.

Kyriakos Mitsotakis, head of the main opposition New Democracy Party, is son of Constantine Mitsotakis, a former prime minister. Fofi Gennimata, head of the small Socialist party which was also dominant for years, is the daughter of a key figure in that party.