Liverpool left it late to take control of their Champions League tie against 10-man Inter Milan and ease the pressure on manager Rafael Benitez.
Gerrard celebrates his potentially crucial second goal at Anfield
Marco Materazzi harshly saw red on the half hour for two clumsy challenges on Fernando Torres, but Inter held firm.
Torres forced a superb save from Julio Cesar, while Patrick Vieira was lucky not to concede a penalty for handball.
But Dirk Kuyt eased home nerves with a deflected shot on 85 minutes and Steven Gerrard's firm drive sealed a fine win.
It was a frantic finale for Liverpool, who had looked like being frustrated by a stoic Inter defensive display that had been led by the awesome Ivan Cordoba.
Instead Benitez, who has been feeling the heat all season from American owners Tom Hicks and George Gillett, was able to put his off-the-field problems and Saturday's FA Cup exit to Barnsley behind him.
And while the Spaniard might not be the mastermind Liverpool crave at domestic level, his record in Europe is far more impressive and the Anfield faithful gave him a rousing reception.
Similarly, Benitez's players started with an enthusiasm that suggested they were desperate to do their bit for the boss and Inter were rocked onto the back foot from the off.
Jamie Carragher had an early shout for a penalty denied when his shot struck Cordoba on the arm and Sami Hyypia then forced keeper Julio Cesar to tip over with a firm header.
But, despite the hosts' endeavour, chances were few and far between and the game was pretty balanced when Materazzi was controversially sent off.
Having already been booked for clipping Torres's heels, the Italian received a second yellow card for another clumsy tackle on the Spaniard - but it looked a harsh decision.
If the Anfield faithful were expecting a rousing end to the half, though, they were to be disappointed and when Gerrard got behind the defence late in the half only to see his cross cleared with not one Liverpool player in the box, it highlighted their lack of first-half ambition.
Materazzi reacts with disbelief after he is handed his marching orders
Benitez clearly had the away goal ruling in mind but Inter rarely looked like troubling that as they had their very first shot on goal - wide - on 49 minutes, before they reverted to a more defensive 4-4-1 formation.
It did not have the desired effect and Torres had a great chance when he ran through on goal, only for keeper Cesar to finger-tip his shot wide.
All of a sudden Liverpool were full of urgency and minutes after Hyypia had headed over from six yards, Vieira was fortunate to get away with a blatant handball on Gerrard's cross.
Peter Crouch was introduced as Benitez pressed for a winner and the frontman lashed a half-volley wide before forcing a great block from Maxwell.
It looked like turning into another frustrating match at Anfield - where Liverpool have been held or beaten nine times this season - but it turned on its head right at the end.
Kuyt finally broke the deadlock when he collected Jermaine Pennant's cross and lashed into the roof of the net via a deflection.
And as if that was not enough, Gerrard drove forward and drove into the far corner with an excellent shot from 25 yards to send the home masses into frenzy.
It was the first defeat in exactly five months for Inter and Liverpool will now be firm favourites to reach the quarter-finals when they defend a two-goal lead at the San Siro.
Liverpool: Reina, Finnan, Carragher, Hyypia, Aurelio, Gerrard, Mascherano, Lucas (Crouch 64), Babel (Pennant 72), Kuyt, Torres.
Subs Not Used: Itandje, Riise, Benayoun, Alonso, Arbeloa.
Goals: Kuyt 85, Gerrard 90.
Inter Milan: Julio Cesar, Maicon, Cordoba (Burdisso 75), Materazzi, Chivu, Zanetti, Stankovic, Cambiasso, Maxwell, Cruz (Vieira 55), Ibrahimovic.
Subs Not Used: Toldo, Figo, Crespo, Maniche, Suazo.
Sent Off: Materazzi (30).
Booked: Chivu, Materazzi.
Ref: Frank De Bleeckere (Belgium).
BBC Sport Player Rater man of the match: Liverpool's Javier Mascherano 7.27 (on 90 minutes).
Please note that you can still give the players marks out of 10 on BBC Sport's Player Rater after the match has finished.