BOSTON — Bartolo Colon allowed three hits and the Oakland Athletics capitalized on eight walks, two balks and two errors to beat the Boston Red Sox 13-0 in a rain-shortened seven-inning game Tuesday night.

The A’s broke a scoreless tie with six runs in the third when Seth Smith hit a two-run homer, then added two in the fourth, four in the fifth and one in the sixth as they snapped a four-game losing streak.

Colon (3-0) pitched all seven innings and had little trouble in the light-to-medium rain that fell throughout the game. He struck out seven and issued his first walk this season in 25 innings to Jacoby Ellsbury leading off the sixth.

Alfredo Aceves (1-1) retired the first four batters then struggled before being relieved by Steven Wright with the score 8-0 with one out in the fourth.

Oakland went ahead in the third when the first four batters reached base.

Eric Sogard walked, Coco Crisp singled and John Jaso and Smith walked, scoring the first run of the game.

Aceves struck out Jed Lowrie before the inning got away from him.

The A’s finished with 13 hits after managing a total of 11 in their previous three games.

Astros 3, Mariners 2: In Houston, Marwin Gonzalez homered, and Bud Norris rebounded from a tough start last time out for the Astros.

The game was tied at 1-1 when Gonzalez launched his homer about 10 rows into the stands in right field to start Houston’s third. Gonzalez, who bats ninth, hit just four home runs in 80 games last season and has three in 16 this year.

Houston got an insurance run when Hisashi Iwakuma (2-1) hit Justin Maxwell with a pitch with the bases loaded later in that inning.

Norris (3-2) allowed a season-high eight hits in five innings and Jose Veras pitched a perfect ninth for his second save in three opportunities.

Orioles 4, Blue Jays 3: In Baltimore, Manny Machado had two hits and two RBIs, and the Orioles used a four-run second inning to beat R.A. Dickey and the Toronto Blue Jays.

Miguel Gonzalez (2-1) allowed three runs in six innings for the Orioles, who have won nine of 13. By taking the first two games of the three-game set, Baltimore improved to 5-2 in seven series this season, including 4-1 against the AL East.

Juan Encarnacion hit a three-run homer for the last-place Blue Jays, who have dropped six of eight.

Yankees 4, Rays 3: In St. Petersburg, Fla., Ichiro Suzuki hit a go-ahead two-run single in the ninth inning for the New York Yankees.

Tampa Bay is winless in all five of Price’s starts this year. The left-hander (0-2) allowed three runs and eight hits over eight-plus innings.

Robinson Cano ended AL Cy Young Award winner David Price’s night with a leadoff single in the ninth.

After Cano stole second on a pitch by Fernando Rodney that struck out Shreveport native Vernon Wells, pinch-hitter Travis Hafner was intentionally walked and Lyle Overbay walked to load the bases.

Twins, Marlins split doubleheader: In Minneapolis, Rob Brantly had three hits and a career-high four RBIs, and the Miami Marlins’ offense broke out of a season-long funk to beat the Minnesota Twins 8-5 on Tuesday night and earn a split in the day-night doubleheader.

Brantly had two doubles, and the Marlins had a season-high 16 hits. Ricky Nolasco (1-2) allowed two earned runs on six hits in five innings.

In the opener, Oswaldo Arcia hit his first career home run, and Kevin Correia gave up two runs in seven innings to lead the Twins to a 4-3 win.

Arcia’s three-run homer in the fourth backed Correia (2-1), who allowed five hits and struck out five.

Brian Dozier had three hits, and Glen Perkins earned his sixth save.