TAMPA, Fla. -- Nick Foles threw a pair of touchdown passes in the final four minutes, including a 1-yarder to Jeremy Maclin with no time remaining Sunday as Philadelphia rallied to beat the Tampa Bay Buccaneers 23-21 and end an eight-game losing streak -- the Eagles' longest in 42 years.

Foles completed 32 of 51 passes for 381 yards in his fourth start in place of the injured Michael Vick. The rookie threw an 11-yard TD pass to Clay Harbor with 3:55 remaining, then led the Eagles on a 64-yard game-winning drive after the Philadelphia defense forced a Tampa Bay punt.

Doug Martin rushed for 128 yards and Josh Freeman shrugged off a slow start to throw for two second-half touchdowns to help Tampa Bay overcome a 10-0 halftime deficit and take a 21-10 lead on Martin's 4-yard TD run midway through the fourth quarter.

That's when Foles, who also scored on a 10-yard run in the first half, took over.

The Eagles take on the Cincinatti Bengals on Thursday night at Lincoln Financial Field, you can listen to the game on 97.3 ESPN.

Copyright by STATS LLC and The Associated Press

More From 97.3 ESPN