But the game burst into life with 25 minutes remaining.
France came so close to taking the lead when Theo Hernandez struck the underside of the bar.
Just moments later, they fell behind.
Mikel Oyarzabal shrugged off Dayot Upamecano in the box and fired a low effort into the corner.
They weren't ahead for long though.
Almost immediately after the restart, Karim Benzema levelled proceedings with an extraordinary strike.
The Real Madrid forward picked up the ball on the edge of the box and curled home a beauty that found the net.
Unai Simon got a hand to Benzema's effort but he couldn't prevent the ball nestling in the top corner.
What a hit that is from Benzema. France bought him back into the fold to deliver in big games and that's exactly what he did against Spain.
France completed the comeback with 10 minutes remaining.
Kylian Mbappe was sent one-on-one with Simon and he showed great composure to roll the ball into the net.
Does Bruno Fernandes deserve a Ballon d'Or vote? | The Football Terrace
The PSG superstar appeared to be offside but the goal was allowed to stand.
France endured some shaky moments late on, with Hugo Lloris producing a big save to deny Oyarzabal.
But they would hold on to clinch the Nations League title.