The Spanish government has declared a new national state of emergency that includes an overnight curfew aimed at avoiding a repeat of the near collapse of the country’s hospitals.

Prime Minister Pedro Sanchez said the decision to restrict free movement on the streets of Spain between 11pm and 6am allows exceptions for commuting to work, buying medicine and caring for elderly and young family members.

He said the curfew takes effect on Sunday night and will likely remain in place for six months.

“The reality is that Europe and Spain are immersed in a second wave of the pandemic,” Mr Sanchez said during a nationwide address after meeting with his Cabinet.

“The situation we are living in is extreme.”

The leaders of Spain’s 17 regions and two autonomous cities will have the authority to set different hours for the curfew, as long as they are stricter; close regional borders to travel, and limit gatherings to six people who do not live together, the prime minister said.

The curfew does not apply to the Canary Islands.

With the mainland curfew, Spain is following the example of neighbouring France, where the government ordered a 9pm to 6am curfew for major cities and large swathes of the country this week.

Health officials have been targeting nightlife as one of the main sources for the latest revival of infections.

Mr Sanchez said he will ask Parliament’s lower house this week to extend the state of emergency until May.

Virus Outbreak Spain
Residents wearing face masks walk along a near-empty street in Pamplona (Alvaro Barrientos/AP)

As dictated by the constitution, a state of emergency can last no longer than two weeks without the endorsement of the Congress of Deputies.

Spain’s second nationwide emergency of the pandemic is not as restrictive as the mandatory home confinement Mr Sanchez ordered in March and lasted for six weeks before being gradually relaxed as the number of new confirmed cases fell.

“There is no home confinement in this state of emergency but the more we stay at home, the safer we will be,” he said.

“Everyone knows what they have to do.”

Authorities want to avoid a second complete shutdown of the country of 47 million to avoid dealing another heavy blow to an economy.

But with the infection rate gaining steam ever since it started rising again in August, health experts have clamoured for action at national level, arguing the crisis requires more than a patchwork of regional measures.

Several regional leaders, who run Spain’s decentralised healthcare system, had asked in recent days for the national government to declare a national state of emergency.

The state of emergency makes it easier for authorities to take swift action without having to get many types of public health restrictions approved by a judge.

Some judges have rejected efforts to limit people’s movements in certain regions, causing confusion among the public.

Spain this week became the first European country to pass one million officially recorded Covid-19 cases.

But Mr Sanchez admitted on Friday in a nationally televised address that the true figure could be more than three million due to gaps in testing and other factors.

Spain reported almost 20,000 new daily cases and 231 more fatalities on Friday, taking the country’s death toll in the pandemic to 34,752.

Confirmed cases are rising across the peninsula, the Balearic Islands and Spain’s two African enclaves.

Under the first state of emergency, Spain’s military battalions were deployed to disinfect retirement homes and set up field hospitals.

So far, this has not been necessary with Spain’s retirement homes better prepared and its hospitals having a slower, if steady, rise in cases.

“The loss of life must be as low as possible but we also must protect our economy,” Mr Sanchez said.