Spanish soldiers helping to fight the coronavirus pandemic have found elderly patients in retirement homes abandoned and, in some cases, dead in their beds, the defence ministry has said.
Spanish prosecutors said an investigation had been launched.
The military has been brought in to help disinfect care homes in Spain, one of Europe's worst hit countries.
Meanwhile, an ice rink in Madrid is to be used as a temporary mortuary for Covid-19 victims, officials said.
The virus is spreading very fast in Spain - the second worst-hit European country after Italy.
On Tuesday, the health ministry announced that the number of deaths had risen by 514 in the past 24 hours - a daily record.
A total of 2,696 people have now died and there are 39,637 confirmed cases.
Spanish Defence Minister Margarita Robles told the private TV channel Telecinco that the government was "going to be strict and inflexible when dealing with the way older people are treated" in retirement homes.
"The army, during certain visits, found some older people completely abandoned, sometimes even dead in their beds," she said.
The defence ministry said that staff at some care homes had left after the coronavirus was detected.
Health officials have said that in normal circumstances the bodies of deceased residents are put in cold storage until they are collected by the funeral services.
But when the cause of death is suspected to be linked to coronavirus they are left in their beds until they can be retrieved by properly equipped funeral staff. In the capital Madrid, which has seen the highest number of cases and deaths, that could take up to 24 hours, officials said.
Spanish Health Minister Salvador Illa told a news conference that retirement homes were "an absolute priority for the government".
"We will exercise the most intensive monitoring of these centres," she added.
As the crisis in Madrid worsened, the city's municipal funeral home said it would stop the collection of Covid-19 victims from Tuesday because of a lack of protective equipment.
The city is to use a major ice rink, the Palacio de Hielo (Ice Palace), as a temporary mortuary where bodies will be stored until funeral homes can collect them, officials told Spanish media.
The Palacio de Hielo complex, which also includes shops, restaurants, a bowling alley and cinemas, is not far from the Ifema congress centre where a field hospital has been set up for coronavirus patients.
Spain is the second worst affected country in Europe after Italy, which now has the highest number of coronavirus-related deaths in the world.
Italian authorities said on Monday that 602 people with Covid-19 had died in the past 24 hours, bringing the total to 6,077.
But the daily increase was the smallest since Thursday, raising hope that stringent restrictions imposed by the government were starting to have an effect.