Parks and public gardens across Madrid — including the Retiro, the 350-acre park in the heart of the city — reopened on Sunday. They had been closed since Thursday because of fears that the strong winds could blow down tree branches and endanger visitors.

The authorities in Madrid said on Saturday that a 32-year-old woman from South Korea had died after being struck by debris that had blown off a building in the city.

Other victims of the storms in Spain included a Dutch man who died while surfing near Huelva on the southwestern coast, and a farmer in the southern province of Granada whose vehicle was swept away when he tried to cross a flooded road.

The northwestern region of Galicia remained on red alert on Sunday — the highest level — because of high winds caused by the second storm. About 27,000 homes were left without electricity in Galicia after power lines were destroyed.