WASHINGTON (AP) — Dansby Swanson hit a two-run homer and Drew Smyly delivered seven solid innings as the Chicago Cubs bounced back from a rough series at Miami to beat the Washington Nationals 5-1 on Monday night.

Swanson went 3-for-5, including a double and his second homer of the season. The 389-foot blast to left-center in the fifth inning made it 4-1 — a welcome advantage for the Cubs, who snapped a three-game skid. All those losses to the Marlins were by one run.

Smyly (3-1) allowed a homer by Lane Thomas in the second inning but cruised from there, throwing just 84 pitches. The left-hander gave up six hits and walked none in his fifth straight start allowing two runs or fewer.

MacKenzie Gore (3-2) allowed a season-high four runs over four-plus innings on seven hits — including three doubles and Swanson's homer. Seiya Suzuki had an RBI single in the first for Chicago, and Trey Mancini drove in Suzuki with a double.

Ian Happ homered in the ninth for Chicago off Cory Abbott.

Dominic Smith had three of Washington's six hits. The Nationals, last in the NL East, have lost four of five.