TAMPA, Fla. — The Atlanta Falcons found relief from their struggles with another victory over the reeling Tampa Bay Buccaneers.

Matt Ryan threw for 219 yards and one touchdown Sunday, helping the Falcons stop a five-game losing streak with a 27-17 win that left the Bucs with a five-game skid of their own.

The Falcons (3-6) won for the first time since embarrassing their NFC South rivals 56-14 on Sept. 18, a game in which the Bucs (1-8) lost quarterback Josh McCown to a thumb injury.

McCown returned to Tampa Bay’s starting lineup for first time since loss, throwing for 301 yards and two TDs. His 1-yard scoring pass to Austin Seferian-Jenkins put the Bucs ahead 17-16 early in the fourth quarter.

But Ryan drove the Falcons right down the field, throwing a 5-yard touchdown pass to Roddy White and a two-point conversion to Harry Douglas.

Steven Jackson scored on a 1-yard run and Matt Bryant kicked four field goals for the Falcons, one of them after a wide-open Devin Hester dropped what would have been a touchdown in the second quarter.

Ryan finished 20-of-31 with no interceptions. Jackson rushed for 81 yards on 16 carries, Julio Jones had eight receptions for 119 yards and White had six catches for 72 yards.

McCown completed 27 of 43 passes, threw a pair of interceptions in the final two minutes and was sacked four times. Rookie Mike Evans had a big game for the second straight week with seven receptions for 125 yards, including a 22-yard touchdown catch that gives him five in his past five games.

Dwight Lowery’s end-zone interception stopped a Tampa Bay drive that reached the Atlanta 4 with 1:49 remaining. Josh Wilson picked McCown’s final pass of the day.

Despite how poorly the Falcons and Bucs have played for much of the season, each entered Sunday clinging to hopes of working their way back into the NFC South race, where no team has been able to take control.

The Bucs went 1-4 with Mike Glennon at quarterback in McCown’s absence, but an anemic offense wasn’t the only reason for their struggles.

A leaky defense, which was expected to be the team’s strength in their first season under coach Lovie Smith, has had problems getting off the field on third down and also has a knack for allowing opponents to put together long scoring drives at critical points of games.

It happened again Sunday in both halves.

McCown’s touchdown pass to Evans made it 10-10 with 46 seconds remaining in the second quarter. But Ryan encountered little resistance in moving the Falcons downfield to kick a 43-yard field goal for a three-point lead at the half. The Atlanta quarterback led a 10-play, 65-yard drive after McCown’s touchdown pass to Seferian-Jenkins put Tampa Bay ahead less than a minute into the fourth quarter.

Evans was the seventh pick in the draft after being Johnny Manziel’s favorite target at Texas A&M. He’s caught at least four passes in each of the eight games he’s played. Vincent Jackson had eight receptions for 75 yards for Tampa Bay.