Miles Mikolas won his fourth straight start, Matt Carpenter hit his NL-leading 36th homer and the St. Louis Cardinals beat the San Francisco Giants 9-2 on Sunday to complete a three-game sweep and remain on track for the NL's second wild card.

St. Louis (87-69) has won three straight games and six of seven. The Cardinals began the day 1½ games ahead of Colorado, which played later Sunday, and remained two games behind Milwaukee, the wild card leader. St. Louis hosts the Brewers (89-67) in a three-game series starting Monday night.

More Images
St. Louis Cardinals starting pitcher Miles Mikolas throws during the first inning of a baseball game against the San Francisco Giants Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

Miles Mikolas won his fourth straight start, Matt Carpenter hit his NL-leading 36th homer and the St. Louis Cardinals beat the San Francisco Giants 9-2 on Sunday to complete a three-game sweep and remain on track for the NL's second wild card.

St. Louis Cardinals' Patrick Wisdom, left, and Matt Carpenter celebrate a victory over the San Francisco Giants in a baseball game Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

Andrew Suarez (7-12) gave up two runs and six hits in five innings. The Giants finished 31-50 on the road for a two-year record of 57-105 away from home.

St. Louis Cardinals' Matt Carpenter, left, rounds the bases after hitting a two-run home run off San Francisco Giants pitcher Casey Kelly, right, during the eighth inning of a baseball game Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

Harrison Bader bunted in a run to spark a five-run sixth that includes RBI singles by Munoz and Paul DeJong around Jose Martinez's two-run double. Carpenter hit a two-run homer off Casey Kelly in the eighth

St. Louis Cardinals' Matt Carpenter rounds the bases after hitting a two-run home run during the eighth inning of a baseball game against the San Francisco Giants, Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

Cardinals: 2B Kolten Wong missed his second consecutive start after leaving Friday's game in the seventh inning with cramps in both hamstrings.

St. Louis Cardinals' Paul DeJong hits an RBI single during the sixth inning of a baseball game against the San Francisco Giants Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

UP NEXT

St. Louis Cardinals' Yairo Munoz celebrates after hitting an RBI-single during the sixth inning of a baseball game against the San Francisco Giants, Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

More AP MLB: https://apnews.com/tag/MLB and https://twitter.com/AP_Sports

Mikolas (17-4) allowed two runs — one earned — and two hits in seven innings with eight strikeouts and no walks. John Brebbia and Giovanny Gallegos finished a five-hitter.

St. Louis Cardinals starting pitcher Miles Mikolas throws during the first inning of a baseball game against the San Francisco Giants Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

St. Louis Cardinals starting pitcher Miles Mikolas throws during the first inning of a baseball game against the San Francisco Giants Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

Andrew Suarez (7-12) gave up two runs and six hits in five innings. The Giants finished 31-50 on the road for a two-year record of 57-105 away from home.

San Francisco has lost 10 straight road games against NL Central teams since winning at the Chicago Cubs on May 27.

The bottom two in the Cardinals batting order built a 2-0 lead with two-out singles, by Yairo Munoz in the second and Mikolas in the fourth.

St. Louis Cardinals' Patrick Wisdom, left, and Matt Carpenter celebrate a victory over the San Francisco Giants in a baseball game Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

St. Louis Cardinals' Patrick Wisdom, left, and Matt Carpenter celebrate a victory over the San Francisco Giants in a baseball game Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

Harrison Bader bunted in a run to spark a five-run sixth that includes RBI singles by Munoz and Paul DeJong around Jose Martinez's two-run double. Carpenter hit a two-run homer off Casey Kelly in the eighth

Brandon Crawford's two-run homer in the seventh stopped an 0-for-9 skid.

TRAINING ROOM

St. Louis Cardinals' Matt Carpenter, left, rounds the bases after hitting a two-run home run off San Francisco Giants pitcher Casey Kelly, right, during the eighth inning of a baseball game Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

St. Louis Cardinals' Matt Carpenter, left, rounds the bases after hitting a two-run home run off San Francisco Giants pitcher Casey Kelly, right, during the eighth inning of a baseball game Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

Cardinals: 2B Kolten Wong missed his second consecutive start after leaving Friday's game in the seventh inning with cramps in both hamstrings.

DEBUT

INF Edmundo Sosa was recalled from Triple-A Memphis. Sosa made his debut when he walked as a pinch-hitter in the eighth, and he scored on Carpenter's home run.

St. Louis Cardinals' Matt Carpenter rounds the bases after hitting a two-run home run during the eighth inning of a baseball game against the San Francisco Giants, Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

St. Louis Cardinals' Matt Carpenter rounds the bases after hitting a two-run home run during the eighth inning of a baseball game against the San Francisco Giants, Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

UP NEXT

Giants: LHP Derek Holland (7-8, 3.57 ERA) starts the first of a three-game series at home against San Diego and RHP Bryan Mitchell (1-4, 6.16 ERA) on Monday night. Holland will make his first start since July 18, which was also against the Padres, where he allowed four runs in five innings.

Cardinals: RHP Jack Flaherty (8-8, 3.08 ERA) kicks off a three-game home series Monday night against Milwaukee and RHP Chase Anderson (9-8, 3.93 ERA). Flaherty is 1-1 with a 2.35 ERA in four career starts against the Brewers.

St. Louis Cardinals' Paul DeJong hits an RBI single during the sixth inning of a baseball game against the San Francisco Giants Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

St. Louis Cardinals' Paul DeJong hits an RBI single during the sixth inning of a baseball game against the San Francisco Giants Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

More AP MLB: https://apnews.com/tag/MLB and https://twitter.com/AP_Sports

St. Louis Cardinals' Yairo Munoz celebrates after hitting an RBI-single during the sixth inning of a baseball game against the San Francisco Giants, Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)

St. Louis Cardinals' Yairo Munoz celebrates after hitting an RBI-single during the sixth inning of a baseball game against the San Francisco Giants, Sunday, Sept. 23, 2018, in St. Louis. (AP PhotoJeff Roberson)