ARLINGTON (AP) — Jose Trevino blooped a two-run single, capping a four-run rally in the bottom of the ninth inning that sent the Texas Rangers over the Colorado Rockies 13-12 on Sunday.

Rockies closer Wade Davis (0-2) retired only one batter while walking four and allowing singles to Rougned Odor and Trevino.

A rookie catcher, Trevino entered his third major league game in the top of the ninth. He is 2 for 8 for Texas, including a game-tying single in Saturday’s 5-2 victory.

Colorado took a 5-1 lead in the seesaw game. The Rangers scored five runs to take a 6-5 lead in the sixth, including Jurickson Profar’s three-run homer off starter Jon Gray.

The Rockies responded with a five-run seventh to go ahead 10-6. Colorado’s Gerardo Parra drove in four runs, three on a bases-clearing double in the seventh.

Texas pulled within 10-9 with three runs in the seventh. Trevor Story hit a two-run homer in the Colorado ninth against Jesse Chavez (3-1).

Yovani Gallardo, pitching for his hometown Rangers for the first time since 2015, allowed the Rockies’ first five runs in five-plus innings.

DJ LeMahieu led off the game against Gallardo by hitting his seventh home run off the left field foul pole.

Nomar Mazara drove in three Texas runs with two singles and a groundout.

Story, the National League leader with 54 RBIs, drove in two runs with his 15th homer.

Gray retired the Rangers’ first 10 batters, striking out seven, before Delino DeShields singled, stole second base and scored on a single by Mazara.

Gray’s only walk of the game led to the five-run sixth.

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