BALTIMORE - Before launching the biggest comeback victory in the history of the Baltimore Ravens, Joe Flacco first had to withstand the indignity of being booed by his usually supportive hometown fans.
Flacco didn't care for the treatment, although he could appreciate the sentiment. And it didn't prevent him from carrying the Ravens past the Arizona Cardinals 30-27 Sunday.
Billy Cundiff kicked a 25-yard field goal as time expired, Ray Rice scored a career-high three touchdowns, and Flacco fueled the comeback with a gritty display of leadership and precise passing.
Week 8 in the NFL
Using a fumble by Flacco and an 82-yard punt return by Patrick Peterson, Arizona scored three touchdowns during a five-minute span of the second quarter to take a 24-3 lead.
That's when many in the sellout crowd of 71,022 voiced their displeasure.
"I don't go to a lot of football games, but I probably would have wanted to boo if I was in the stands, too," Flacco said. "We weren't looking too good. We weren't playing too well."
Baltimore (5-2) answered with a 24-point run and moved in front 27-24 when Rice scored his third touchdown on the opening play of the fourth quarter.
Arizona (1-6) pulled even with a 45-yard field goal by Jay Feely with 8:55 left, but the Ravens won it with a 37-yard, beat-the-clock drive in the final minute.
After the Cardinals were forced to punt from deep in their own territory, Baltimore took over at the Arizona 44 with 52 seconds left. A 36-yard completion from Flacco to rookie Torrey Smith moved the ball to the 5, setting the stage for Cundiff's game-winner.
The Ravens' previous biggest comeback was from 19 points down against Tennessee in 2006.
"We woke up, plain and simple," said former Arizona star Anquan Boldin, who caught seven passes for 145 yards and was a key contributor in the rally.
Flacco went 31 for 51 for 336 yards, and Rice ran for 63 yards on 18 carries. In a 12-7 loss to Jacksonville on Monday night, the 5-foot-8 running back was limited to 28 yards on eight carries.
Arizona has lost six straight. Four of those defeats have been by four points or fewer.
Kevin Kolb threw for 153 yards and a touchdown, and Peterson became the eighth player in Cardinals history to have at least two punt returns for touchdowns in a single season. The last one to do it was Vai Sikahema in 1986.
The Ravens began the second half with an 80-yard drive in which Flacco went 5 for 5, including a 37-yarder to Boldin that set up a 1-yard touchdown run by Rice to make it 24-13.
"I felt like the way we came out at halftime is what turned it around," Baltimore linebacker Jameel McClain.
Late in the third quarter, Boldin caught passes 21, 23, 27 and 9 yards during an 88-yard march that ended with another 1-yard TD run by Rice.
CSN: Brian Urlacher, who played 13 seasons for the Bears, announced his retirement from football Wenesday on his personal twitter account.
2013 SNF Schedule
Check out the 2013 Sunday Night Football schedule.
Latest from ProFootballTalk
Video: Football from NBC Sports
Jets 'throwing the kitchen sink at the offense'
Jets coach Rex Ryan talks to the media following Wednesday's OTAs and says New York's defense is much further along than the offense, but they're throwing everything they can at the offense to get them ready for Week 1.
Check out some of the NFL cheerleaders from across the league.