A 15ft (4.5m) high wall collapsed on a cluster of tin-roofed huts housing migrant workers and their families in western India early on Saturday following heavy rain.
At least 16 people were killed, an official said.
The wall dividing the car parking area of a multi-storey residential apartment building collapsed in Pune, a city in Maharashtra state, fire official J Gaekwad said.
Three people were pulled out of the rubble alive and taken to hospital, he added.
The wall collapsed as the city was deluged by 2.8in (7.3cm) of rain on Friday, the second-highest rainfall for the month of June in the past nine years, the Press Trust of India news agency said.
The workers and their families were sleeping when the wall collapsed on them.
The victims were migrants from eastern Bihar state and northern Uttar Pradesh state. The migration of workers from these impoverished states to other places in India is common because of lack of job opportunities.
Bimal Sharma, who survived with minor injuries, said he escaped as some trees blocked the stones and vehicles that came down toward the huts, according to the Hindustan Times newspaper.
He shouted for help and was rescued by people living nearby. He lost his younger brother in the collapse, the newspaper reported.
The workers were employed at an adjacent construction site. The rescue and clearing operation was completed after nearly nine hours, Mr Gaekwad added.
Separately, three people were electrocuted in Mumbai, India’s financial and entertainment capital, as delayed monsoon rains hit Maharashtra state on Friday, the Times of India newspaper reported.
Building collapses are common in India during the June-September monsoon season, when heavy rains weaken the foundations of structures that are poorly constructed.
We need your help ...
The coronavirus pandemic is changing our world, fast. And we will do all we can to keep bringing you news and analysis throughout. But we are worried about maintaining enough income to pay our staff and minimal overheads.
Now, more than ever, we need a vibrant, independent media that holds the government to account and calls it out when it puts vested economic interests above human lives. We need a media that shows solidarity with the people most affected by the crisis – and one that can help to build a world based on collaboration and compassion.
We have been fighting against an establishment that is trying to shut us down. And like most independent media, we don’t have the deep pockets of investors to call on to bail us out.
Can you help by chipping in a few pounds each month?