It was heartbreak for Lithuania as Spain completed a last-gap fightback to reach the final of the Termosteps U16 European Championship Women.
Spain's five-game winning streak looked to be at an end as Lithuania went into the final three minutes ahead, having led for all but the opening seconds.
But the defending champions were almost always within touching distance and their determination to make it a hat-trick of European titles eventually shone through.
They led 4-2 after 22 seconds but were 12-8 down by the end of the first quarter.
Lithuania's lead grew to 28-16 by half-time but Spain cut that to 39-33 going into the final quarter.
They eventually levelled and still had enough in the tank to edge home.
Elena Espiau led Spain with 17 points but Lithuania center Giedre Paugaite was the real star of the show with 18 points and 11 rebounds.