Torrey Smith, Buster Skrine

Baltimore Ravens wide receiver Torrey Smith, right, pauses after scoring a touchdown. (AP Photo/Gail Burton)

The Baltimore Ravens secured a berth in the AFC playoffs for the sixth time in seven years after pulling off a 20-10 win over the Cleveland Browns in their regular season finale on Dec. 28 at M&T Bank Stadium in Baltimore.

The win improved the Ravens’ record to a 10-6, just enough to squeeze them into the sixth and final slot in the AFC playoffs.

Baltimore’s ticket was punched with a little help—the San Diego Chargers’ record matched Baltimore’s and the Chargers held the tie-breaker over the Ravens, but lost to the Chiefs, 19-7.

Baltimore Ravens quarterback Joe Flacco reacts after wide receiver Torrey Smith scored a touchdown. (AP Photo/Gail Burton)

Still, the Ravens had to earn their entry into the postseason the hard way, as Cleveland worked to ruin Baltimore’s opportunity. The Ravens struggled offensively through the first three quarters of the game and trailed 10-3 at the start of the fourth quarter. Browns rookie quarterback Conner Shaw made a big play, scrambling behind the line of scrimmage before tossing a 49-yard pass to Taylor Gabriel that set up a short one-yard touchdown run by Terrance West.

Baltimore Ravens wide receiver Torrey Smith, left, pulls in a catch. (AP Photo/Nick Wass)

But in the fourth quarter, the Browns lead didn’t last long, as Baltimore finally snapped out of its offensive funk and scored 17 points.

Ravens quarterback Joe Flacco tossed two touchdown passes in the final quarter, including a 16-yard touchdown to receiver Torrey Smith and a two-yard passing score to receiver Kameer Aiken. Flacco finished 22-of-36 for 312 yards and a 107.6 passer rating. His two touchdown passes set a new personal single-season record for Flacco with 27 passing touchdowns this season, the most in his seven-year career. He also finished the season with a career-high 3,986 passing yards.

Forsett ran for 119 yards on 17 carries and finished the season with 1,266 total rushing yards, also a personal career record.

Baltimore Ravens wide receiver Steve Smith (89) tries to outrun Cleveland Browns defensive end. (AP Photo/Nick Wass)

Steve Smith Sr. led all receivers with eight catches for 90 yards; he finished the year with 79 catches for 1,065 yards, marking the eighth time in his 14-year career that he has recorded more than 1,000 receiving yards in a single season. Torrey Smith finished the season with 49 catches for 767 receiving yards and 11 touchdowns, the most he has caught in a single season.

Next: Baltimore will face either the Pittsburgh Steelers or the Cincinnati Bengals in the AFC Wild Card round.