An 84th minute goal by captain Paul McKenna gave Nottingham Forest a valuable three points and kept their play-off hopes alive.
It was a fast-paced start to the game, with Forest taking the lead in the 15th minute courtesy of Marcus Tudgay and Leicester equalizing soon after. Leicester dominated for a while after that but the pace of the game slowed towards the end of the half.
It was a poor second half until Forest scored in the 73rd minute, bringing the City Ground to life and resulting in a tense finish to the game when Leicester equalized just a minute later. But it still wasn't over and when Forest once again took the lead, this time they kept their composure.
Forest lost the toss and started the game shooting towards the Trent End, leaving Lee Camp to struggle with the fierce sun at the Bridgford End.
And he was the first keeper in action, in the third minute, nicking the ball from Diomansy Kamara's feet as he tried to shoot from just inside the penalty area.
Leicester looked dangerous on the break but Ayegbeni Yakuba fell over as he tried to weave his way between two Forest defenders.
Well-worked play by Forest created a chance when the ball was chipped in to Marcus Tudgay who chested the ball back and down for Lewis McGugan, but his volley went over the crossbar.
And the two players combined to produce the first goal of the game in the 15th minute. A beautiful cross from McGugan from the right found Tudgay on the other side and he produced a perfect finish, heading down low into the far corner.
But Leicester were back on level terms six minutes later after Guy Moussi gave the ball away in midfield. Kyle Naughton's effort was cleared but, with no Forest player to get the ball away, it came out to Matt Oakley, who drilled the ball in from the edge of the D. Camp dived to his right to try and make the save and although he got a hand to it he was unable to stop the ball from going into the bottom of the net.
Leicester threatened again with a break down the left when Paul Gallagher played the ball out to Ben Mee who charged forward before sending the ball goalwards, but Camp was able to make the save.
Down the other end, a good turn and cross by McGugan into the box couldn't find a Forest player and Chris Weale was able to gather the ball up.
The game went a bit flat towards the end of the half, with neither side taking control as they looked content to go in at the break with the scores level.
Six minutes into the second half Forest created a chance when Paul McKenna got away from his man in midfield and sent the ball through to Robert Earnshaw whose shot from a tight angle forced Weale to dive to his left to make the save at the near post.
Neither side seemed able to keep possession in a much scrappier game of football.
There was a half-chance for Forest when Earnshaw did well to get away from his man on the left corner of the box, but his effort was easily saved by Weale.
Robbie Findley was poised to make his debut just as Forest scored their second goal. McGugan fired in a long-range shot which Weale could only parry away. The rebound came out to Earnshaw who fired the ball into the corner.
As Findley sat back down, Leicester caught Forest sleeping with a quickly taken free kick and the ball was parried by Camp and turned in by substitute Darius Vassell.
Following the equalizer Kris Boyd came on for Tudgay and four minutes later Findley came on for Earnshaw with ten minutes remaining.
And Findley was quickly in the action as he raced into the penalty area and with the keeper racing off his line in a race to the ball, the Forest striker lobbed it wide.
Forest were in front again in the 84th minute from a volley by McKenna which Weale should have easily saved but the ball bobbled under the keeper and into the back of the net and the City Ground erupted.
McGugan went down injured soon after but was able to walk off comfortably when he was replaced by David McGoldrick with four minutes remaining.
Unlike following the first two goals, Forest kept their composure to hold onto their lead, although the tension was unbearable when Camp had to rise high in a crowded box to grab the ball out of the air from a Leicester corner.
Nottingham Forest: Camp, Moloney, Morgan, Chambers, Gunter, Cohen, Moussi, McKenna(C),&nbsp;McGugan(McGoldrick 86min), Tudgay(Boyd 76min), Earnshaw(Findley 80min)
Subs not used: Darlow, Bennett, Majewski, McCleary,
Scorer: Tudgay 15min, Earnshaw 73min, McKenna 84min
Leicester City: Weale, Naughton, Vitor, Bruma, Mee, Oakley (C)(Abe 50min), King, Wellens, Yakubu(Vassell 58min), Kamara(Howard 76min), Gallagher
Subs not used: Ricardo, Dyer, Berner, Moreno
Bookings: Kamara 11min, Vitor 90+4min)
Scorers: Oakley 21min, Vassell 74min
Referee: M Clattenburg
Attendance: 24,217 away attn: 3,309