Oscar Puente, Spain’s transport minister and a close ally of Socialist Prime Minister Pedro Sánchez, announced his resignation on Tuesday night.

His departure followed an hours-long grilling by the Parliament’s standing committee, which is acting on behalf of the full Parliament while it is dissolved ahead of the Nov. 29 snap election.

“My decision is a matter of political dignity,” Puente said, adding that stepping aside was the right move for “a modern country, not a failed state as some claim.”

Puente had come under pressure from both critics and some political allies after last week’s train crash that killed 69 people. It was the second fatal rail disaster in Spain this year after January’s accident in Adamuz, which killed 46. Puente had held the transport portfolio since 2023.

After a cabinet meeting on Tuesday morning, Puente dismissed some calls for his resignation from elements within the coalition, including members of Sumar, the junior partner.

Sánchez has publicly supported Puente as investigators and political opponents probe how Spain manages its rail networks — an issue that will weigh heavily as parties head into the campaign.

This breaking story is being updated.