Images shared by local media showed the wreckage of two trains strewn on the tracks and an embankment, with emergency services rushing to the scene.
The accident in the central region of Castilla-La Mancha comes one month before Socialist Prime Minister Pedro Sanchez, who faced heavy criticism for the first disaster, seeks to overturn unfavourable polls in an early general election.
Sanchez, who is seeking to extend his eight-year premiership in the November 29 vote, said on X that he was "shocked" by the accident and sent "my love, solidarity and support to all the victims and their families".
He cancelled his participation in a summit on obesity in Madrid after the news broke, while his Socialist party suspended all its campaign activities.
Condolences flooded in from across Spain and Europe. The Spanish royal household said on X it was "shocked and concerned" by the accident, conveying its support to the victims, their loved ones and the emergency services.
European Commission chief Ursula von der Leyen said "Europe mourns" with the victims after the "devastating news", while French President Emmanuel Macron expressed his country's "solidarity".
Spain's high-speed rail network has received huge investment in recent years, growing to become the world's second-largest after China and a source of national pride.
But Wednesday's accident comes after another collision between two high-speed trains outside the southern village of Adamuz in January left 46 dead, which raised major questions about safety on the country's railways.
That crash was Spain's deadliest train accident since 2013, when 80 people died after a train veered off a curved section of track outside the northwestern city of Santiago de Compostela.
Both accidents happened on the line linking Madrid to the southern city of Seville. One of the country's busiest routes, it was Spain's first high-speed line when it opened in 1992 to coincide with the Seville universal exposition.
This is a developing story and more information will follow.