MADRID — A powerful winter storm in Spain has killed at least 10 people after battering the country for days, destroying bridges, cutting off roads and railway lines and flooding vast swaths of farmland.

Even as the storm moved north, setting off weather alerts for parts of France, tens of thousands of people across Spain were still recovering on Thursday from driving rains and pounding waves that wreaked havoc in coastal towns and villages.

Farther inland, residents began the process of digging themselves out after heavy snowfalls that left villages cut off from assistance.

Since last weekend, the eastern coast of Spain has been regularly hit by winds that reached over 60 miles per hour, the strongest in the country since 1992, according to the Spanish weather service.