Team GB men's hockey team booked an Olympic semi-final for the first time since 1988 against Netherlands after securing a nail-biting draw with Spain at the Riverbank Arena.
Requiring just a draw to reach the last four, Ashley Jackson had put Britain ahead before the break from a penalty corner, before Pau Quemada levelled in the second half.
Searching for the goal that would take them through over GB, Spain piled on the pressure but couldn't convert any of the three late penalty corners they created as the hosts escaped by the skin of their teeth.
The men came into their final group game looking to replicate the success of their female counterparts by qualifying for the semi-final, and after coming back to draw with favourites Australia, Great Britain required a point against Spain, who had to win to leapfrog the hosts and reach the knock-out phase.
GB came close to getting off to the best possible start inside seven minutes, when James Tindall saw his hit from a penalty corner turned away by Francisco Cortes.
Xavi Lleonart almost gave the Spanish an unlikely lead, before Harry Martin's close range effort was saved by James Fair.
Eventually the pressure from the home side told when Jackson converted clinically from a penalty corner with three minutes of the first half remaining.
A similarly cagey second half almost saw Britain double their lead when Tindall deflected the ball agonisingly onto the crossbar but their misfortune was compounded almost immediately, as Quemada netted from a penalty corner to send the nerves jangling.
Roc Oliva almost sent Britain crashing out but his penalty corner slid wide, as possession came at a premium for Andy Halliday's side.
The pressure from the Spanish continued to come, with two successive penalty corners in the final three minutes, with Fair saving from Quemada.
The Spaniard's had two penalty corner awards overturned in the final minute of the match, but Team GB were able to see out the remainder of the match to book their place in the last four, for the first time since claiming gold at the Seoul Olympics 14 years ago.