NEW YORK (AP) — Aaron Judge hit a long three-run homer moments after Baltimore committed its fifth error of the game, and the surging New York Yankees beat the sloppy Orioles 10-5 on Thursday.

Judge hit his fifth homer two batters after shortstop Jorge Mateo committed his second error by misplaying DJ LeMahieu’s grounder. After Tim Locastro scored on a wild pitch by Paul Fry, Judge blasted a slider into the left-center field seats.

READ MORE: UMMS Employees Learn To Intervene, Save Lives On National Stop The Bleed Day

Judge also had a tying hit and Anthony Rizzo delivered a go-ahead single during New York’s four-run fifth, when all the runs were unearned.

Marwin Gonzalez had an RBI double, and Judge hit his single off Baltimore starter Bruce Zimmermann (1-1).

Giancarlo Stanton added an RBI single as the Yankees won their sixth straight and for the eighth time in nine games. New York also won its seventh straight home game and became the first AL team with 13 wins.

Judge tied it with a hard single that deflected off second baseman Rougned Odor’s glove to center field. Judge’s hit occurred after Mateo let LeMahieu’s grounder deflect off his glove.

Gonzalez’s hit came after third baseman Kelvin Gutiérrez was charged with a throwing error for making a low throw to first base on a grounder by Locastro. Gonzalez also added a sacrifice fly that capped an 11-pitch plate appearance after reliever Mike Baumann was charged with a throwing error on Locastro’s comebacker.

Josh Donaldson padded the lead with an RBI single in the seventh.

Rizzo, who homered three times Tuesday, gave the Yankees a 3-2 lead by dropping a single in front of left fielder Austin Hays.

Gutiérrez hit an RBI single and Trey Mancini had an RBI groundout in the third for the Orioles, who dropped their fourth straight.

Hays had four hits, including an RBI double in the ninth.

READ MORE: Dr. Fauci Urges UMD Baltimore Graduates To 'Live A Life Of Service'

Zimmermann was charged with four unearned runs and allowed five hits in 4 1/3 innings.

New York starter Jameson Taillon allowed two runs and seven hits in 4 2/3 innings. He also threw two wild pitches that set up Baltimore’s second run.

Miguel Castro (2-0) escaped a bases-loaded jam in the fifth. Jonathan Loáisiga stranded two in the sixth and tossed 1 1/3 innings before the Yankees pulled away.

Rookie Ronald Marinaccio allowed doubles to Hays and Odor before giving up an RBI single to Ryan McKenna in the ninth.

TRAINER’S ROOM

Orioles: INF Ryan Mountcastle (stiff neck) was held out of the lineup for the second straight game and is day-to-day. … C Anthony Bemboom had his left middle finger bloodied during the second inning and got it taped up.

Yankees: OF Aaron Hicks (paternity list) is expected to be activated Friday.

UP NEXT

Orioles: Baltimore did not announce a starting pitcher for the opener of a three-game series at home against Boston. LHP Rich Hill (0-1, 4.85 ERA) will start for the Red Sox.

Yankees: LHP Nestor Cortes (0-0, 1.15 ERA) opens a three-game series in Kansas City and opposes LHP Kris Bubic (0-1, 14.14).

MORE NEWS: CIAA Basketball Tournament Drew 36K Fans And Had $19.6M Economic Impact, Officials Say

(© Copyright 2021 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)