Madrid's mayor on Sunday advised all residents to stay at home as the capital prepared itself for torrential rain and storms affecting parts of Spain.
National weather agency AEMET issued a maximum red alert, which means possible extreme danger, for Sunday in the Madrid region, Toledo province, and the city of Cadiz.
It said up to 120 litres per square metre of rain could fall over 12 hours in Madrid.
"Due to the exceptional and abnormal situation, in which rainfall records will be broken, I ask the people of Madrid to stay at home today," Madrid Mayor Jose Luis Martinez-Almeida wrote on X, formerly Twitter.
Madrid's emergency services sent texts to residents warning them of flood risks and advising them not to use vehicles.
LaLiga suspended an evening match between Atletico Madrid and Sevilla at the Wanda Metropolitano stadium in Madrid due to the alert.
In Alcanar, Tarragona, on Spain's east coast, emergency services have also confined residents to their homes due to flooding after 215 litres per square metre of rain in the past 24 hours.


India's parliament approves landmark bill to expand legislatures
Nepal declares dead thousands missing since August floods
EU ministers agree to further tighten visa restrictions for Russians
Russian strike on Kyiv shopping mall kills four, after days of deadly attacks
North Korea's Kim tours Tianjin as China state visit extends to third day
4 injured after debris from intercepted Houthi missile falls on Riyadh tower
'Do not ignore this': Big Tech warns world to adopt advanced encryption as AI advances
Bangladesh ex-PM Hasina defers planned homecoming, party leader says
