Several other regions of Spain are bracing for heavier downpours and colder temperatures.
Forecasters say up to 180mm of rain could fall in just 12 hours in Catalonia, north-east Spain, accompanied by thunderstorms along the coast near Tarragona.
Schools across the southern province of Malaga were closed, while many supermarkets closed their shutters.
Footage circulating on social media shows normally busy areas of the city deserted as streets were flooded.
About 3,000 people living in the immediate vicinity of the Guadalgorce River were told to leave their homes, the Andalusian regional government said.