However, Madrid's regional government says that the lockdown is not legally valid. Under the new restrictions, residents will not be allowed to leave the area unless they have to make an essential journey. The Spanish government orders a partial lockdown in Madrid and surrounding areas badly affected by COVID-19 after a rise in cases.COVID-19 pandemic in the Community of Madrid.