Jordan Beck hit a tying double in the eighth inning and Hunter Goodman singled home the go-ahead run two batters later as the visiting Colorado Rockies rallied past San Francisco 4-3 on Thursday night to deny Justin Verlander his first win with the Giants and 263rd of his career.

Last-place Colorado (6-25), in winning its second in a row, came back against reliever Tyler Rogers (2-1) and snapped a 12-game skid at Oracle Park.

The 42-year-old Verlander, who signed a $15 million, one-year contract in January, struck out four and pitched into the seventh.

Wilmer Flores and Mike Yastrzemski each hit an RBI double in the sixth to put San Francisco ahead 3-1.

The Giants have their first three-game losing streak this year.

Diamondbacks 4, Mets 2: Juan Soto hit his first two home runs at Citi Field as a member of the Mets, but Arizona handed New York a rare home series loss.

The Mets, who are 13-3 at Citi Field this season, had their franchise-record streak of 10 straight home series wins snapped.

Zac Gallen (2-4) allowed only two hits over six innings. He didn’t allow a runner past first until Soto’s opposite field blast with one out in the sixth.

Soto also slugged a home run off Kevin Ginkel in the eighth.

Geraldo Perdomo and Tim Tawa each homered for the Diamondbacks.

Cubs 8, Pirates 3: Dansby Swanson, Kyle Tucker and Seiya Suzuki all took Pittsburgh ace Paul Skenes deep in the fifth inning as Chicago pulled away for a road victory.

Suzuki later added a two-run shot off reliever Kyle Nicolas.

Skenes (3-3) labored through his shortest start of the season.

The reigning NL Rookie of the Year lasted just five innings. His four walks matched his total on the season coming into the game.

Reds 9, Cardinals 1: Jose Trevino hit a two-run homer in the second and Spencer Steer added a solo shot as Cincinnati defeated visiting St. Louis.

Nationals 4, Phillies 2: Luis Garcia Jr. singled, doubled and drove in a run, Brad Lord pitched into the sixth inning for his first major league win and Washington won at Philadelphia to snap a three-game slide.

Lord (1-3) allowed two runs, six hits and a walk in five-plus innings.

Royals 8, Rays 2: Bobby Witt Jr. homered to extend his hitting streak to 22 games and had three RBIs, Seth Lugo pitched six solid innings and Kansas City earned a three-game road sweep of Tampa Bay.

Lugo (3-3) gave up two runs and five hits with five strikeouts.

Guardians 4, Twins 3 (10): José Ramírez became the first player in Cleveland franchise history to reach 250 career homers and 250 steals and then scored the winning run in the bottom of the 10th against Minnesota.

Ramírez’s single drove in Steven Kwan to tie it at 3. Ramírez then stole second base to become the 24th player in major league history to reach the milestone.

Angel Martínez hit a sharp grounder into right to score Ramírez.

Blue Jays 4, Red Sox 2: Vladimir Guerrero Jr. put Toronto ahead with a three-run homer in the eighth inning in a home win over Boston.

Athletics 3, Rangers 0: Jeffrey Springs (4-3) gave up two hits in six scoreless innings and the Athletics beat host Texas.

White Sox 8, Brewers 0: Miguel Vargas hit a three-run homer, Luis Robert Jr. had four RBIs and Chicago blanked visiting Milwaukee.

Sean Burke (2-4) gave up two hits and three walks over six scoreless innings.