A deadly fire in Johannesburg's inner city was "a wake-up call" for South Africa, says President Cyril Ramaphosa.
Seventy-four people were killed - including 12 children - after a blaze in a five-storey building, which was being occupied by homeless people.
More than 50 others were injured.
Earlier, the city of Johannesburg confirmed it owned the building, but said cartels had taken it over. Officials say the cause of the deadly fire is unclear.
In a news conference at the site of the fire, Mr Ramaphosa said the incident needed to be investigated and lessons learnt to prevent future tragedies.
"It's a wake-up call for us to begin to address the situation of housing in the inner city," the South African leader said.
The building used to be a home for abused women and children, but once the lease expired, it was "hijacked", President Ramaphosa explained to reporters.
Many properties around the area where the blaze happened have been deemed unfit to live in.
Yet these old blocks, abandoned by their owners or the city authorities, are full of families, often paying rent to criminal gangs who run them.
Some of those who use the buildings include undocumented migrants, mostly from other African countries.
The buildings, which lack running water, toilets or a legal electricity connection, are then said to have been "hijacked".
South Africa faces a chronic housing shortage, with an estimated 15,000 people estimated to be homeless in Johannesburg.
"We need to get on top of this and find effective ways of dealing with problems of accommodation, of housing, and services in the inner city," Mr Ramaphosa added.
He also commended emergency services, who arrived at the scene 10 minutes after the fire was reported.
Johannesburg city manager Floyd Brink said 200 families were affected by the fire and "all efforts" were taken to provide accommodation.
A spokesman for the emergency services, Robert Mulaudzi, told the BBC that the fire had gutted the building but firefighters had been able to bring out some of the occupants.
He explained that because the building was not properly looked after, makeshift structures and debris had made it hard to search for and rescue people.
A video posted by Mr Mulaudzi to the platform X, formerly known as Twitter, showed fire trucks and ambulances outside the building with burnt-out windows.
Photos from the scene showed covered bodies lined up near the burned building.
One woman told journalists she was outside the building searching for her 24-year-old daughter.
"As soon as I heard the building was burning down, I knew I had to run here to come and look for her," she said.
"Now that I'm here, I'm kept in suspense because I really don't know what is happening. I don't get any direction - so I'm actually very anxious, I don't know if my daughter is alive."
In a visit to the scene, Johannesburg mayor Kabelo Gwamanda said Johannesburg officials would relocate people living in similar "hijacked" buildings in the city, and turn those buildings into social housing. "We are not going there with brute force," he told reporters, "we are trying to apply a sensitive strategy."
Asked whether his administration would take responsibility for the tragedy, Mr Gwamanda said the government was dealing with the issue of cartels hijacking buildings, which was taking place across the city.
In the wake of the fire, many South Africans on social media condemned the online xenophobic attacks that some have made against the victims and survivors of the fire.
Latest Stories
-
WAFU B U-17 Girls’ Cup: Black Maidens beat Nigeria on penalties to win inaugral tournament
2 minutes -
Real Madrid beat Sevilla to keep pressure on leaders Atletico
1 hour -
Liverpool put six past Spurs to go four points clear
1 hour -
Manchester United lose 3-0 at home to Bournemouth yet again
1 hour -
CHAN 2024Q: ‘It’s still an open game’ – Didi on Ghana’s draw with Nigeria
1 hour -
CHAN 2024Q: Ghana’s Black Galaxies held by Nigeria in first-leg tie
2 hours -
Dr Nduom hopeful defunct GN bank will be restored under Mahama administration
3 hours -
Bridget Bonnie celebrates NDC Victory, champions hope for women and youth
3 hours -
Shamima Muslim urges youth to lead Ghana’s renewal at 18Plus4NDC anniversary
4 hours -
Akufo-Addo condemns post-election violence, blames NDC
4 hours -
DAMC, Free Food Company, to distribute 10,000 packs of food to street kids
5 hours -
Kwame Boafo Akuffo: Court ruling on re-collation flawed
6 hours -
Samuel Yaw Adusei: The strategist behind NDC’s electoral security in Ashanti region
6 hours -
I’m confident posterity will judge my performance well – Akufo-Addo
6 hours -
Syria’s minorities seek security as country charts new future
7 hours