Portsmouth striker Aruna Dindane struck deep into stoppage time to earn his side a valuable 1-1 draw against Sunderland in their Barclays Premier League survival bid.
Darren Bent had given the visitors the lead from a penalty in the 12th minute at Fratton Park, with Ricardo Rocha sent off in the build-up to the opener.
The England striker raced into the penalty area and went down after getting clipped by Rocha. Referee Kevin Friend showed a red card to Hassan Yebda and the Algerian headed towards the dressing room before Rocha called him back. The confusion did not put Bent off and he tucked away his spot-kick off the post for his 16th of the season.
With Avram Grant sent to the stands, after going eyeball to eyeball with Friend having marched onto the pitch to confront the referee, it looked like there was no way back for Pompey.
But Sunderland had Lee Cattermole sent off for a challenge on Angelos Basinas and David Meyler followed after a clash with Steve Finnan. The visitors also hit the post through Matthew Kilgallon.
Then in the fifth minute of stoppage time, Dindane met Jamie O'Hara's deep cross and headed home.