Alexia Putellas scored in the 83rd minute to give Spain a 1-0 victory over England in the SheBelieves Cup on Wednesday.
England, ranked sixth in the world, and No. 13 Spain both went into the game with a win over Japan and a loss to the United States in the round-robin tournament decided on points.
England goalkeeper Carly Telford made a key save early in the second half when she stopped a one-on-one attempt from Ainhoa Moraza.
But Spain finally broke through with Putellas' header that Telford leaped for but couldn't stop.
It was Spain's first victory over England in seven years.
In Wednesday's late game, the United States defeated Japan 3-1 to lift the SheBelieves Cup.