It's a rare three-game winning streak for the last-place Rangers. They'll try to tie their season high of four straight wins on Wednesday.
“We had a hard time winning games like today earlier in the season," Texas manager Chris Woodward said. "Now we’re finding ways to win games like this."
Arizona has lost nine of 10.
Texas responded with three runs in the fourth, the big blow coming on Martin's two-run single. Lyles took it from there, matching his season high with seven innings despite coming out of the bullpen. He threw 96 pitches.
Texas used an opener to start the game and right-hander Spencer Howard was effective, retiring all six hitters he faced before handing off to Lyles.
It was the second straight strong outing for Lyles (8-11), a veteran right-hander who has had a rough season and entered with a 5.63 ERA. He'd given up the most hits (171) and homers (36) in the AL this year.
But Lyles cruised through the Diamondbacks' lineup, yielding just three hits and one run. Texas shortstop Yonny Hernandez helped the pitcher by making a diving catch of Varsho's line drive to end the fourth that would have scored Pavin Smith from third.
Smith had two of Arizona's three hits.
Lyles retired 15 of the last 16 batters he faced.
“We had a couple quick, efficient innings in there," Lyles said. "Not too much traffic on the bases.”
Diamondbacks manager Torey Lovullo said his team wasn't being selective enough at the plate and lacked energy at times, especially during the early innings.
“I saw the same game you saw, and we’ve got to do better,” Lovullo said.
Arizona wasted a solid start from Zac Gallen (2-9), who gave up three runs over 6 2/3 innings. The right-hander allowed six hits and struck out eight. The only blemish was a 28-pitch fourth that resulted in three runs.
“I thought he did a great job outside of the fourth,” Lovullo said. “If you’re looking at the entire day, he pitched into the seventh, gave up three runs, overall a solid outing.”
It was an interleague matchup between two last-place teams that have long been out of contention. The Rangers (50-88) and Diamondbacks (45-94) came in a combined 74 games out of first place and 87 games below .500.
Arizona was playing slightly better immediately following the All-Star break with an 8-8 record in the first 16 games. Since then, the Diamondbacks have had a slow regression and lost 12 of their past 16.
Rangers: Howard was activated from the COVID-19 injured list before the game. RHP Nick Snyder was placed on the 10-day IL with right shoulder fatigue. The move is retroactive to Sept. 4.
“I felt pretty good,” Howard said. "Definitely good to get back out there."
Diamondbacks: Added RHP Brandyn Sittinger and LHP Miguel Aguilar to the big league roster. The team placed RHP Tyler Clippard on the COVID-19 injured list and optioned RHP Taylor Clarke to Triple-A Reno.
2021 MLB playoffs: NLCS MVP Eddie Rosario helps send Braves to first World Series since 1999
Rosario was a fourth-round draft pick by the Minnesota Twins in 2010 and has basically flown under the radar ever since. He was named NLCS MVP after the Braves defeated the heavily favored Dodgers to advance into their first World Series since 1999.
Braves vs Astros: A World Series 6 decades in the making
Freddie Freeman swinging onto baseball’s biggest stage for the first time, Jose Altuve & Co. back for more. Luis Garcia, Framber Valdez and a fresh set of Houston arms facing Ozzie Albies, Austin Riley and these eager, young Atlanta bats.
2021 MLB playoffs: Three questions for Los Angeles Dodgers as World Series title defense ends in defeat
There will be no Fall Classic repeat this October. So what's next for the Dodgers following their NLCS loss to the Braves?
Braves advance to 1st World Series since 1999 after dramatic finish
Dansby Swanson makes an incredible sliding stop and throw to first base for the final out to seal a 4-2 win for the Braves over the Dodgers to advance to their first World Series since 1999.
Atlanta Braves back in World Series for first time since 1999 after upsetting Dodgers in NLCS
Eddie Rosario's three-run homer in the fourth inning proved to be the difference as the Braves beat the Dodgers 4-2 in Game 6 of the NLCS.
2021 MLB playoffs: Schedules, postseason bracket, analysis and updates
All the latest information about the teams, storylines and highlights of the 2021 MLB postseason, from the start of October through the World Series.