Josh Hamilton led off the ninth with a single and stole second before Justin Smoak popped up and David Murphy advanced him on a groundout. Julio Bourbon walked before Treanor's hit off Leo Nunez (2-1).
The Rangers have won six of their last seven.
Neftali Feliz pitched a scoreless ninth for his 16th save in 18 opportunities.
Alexi Ogando (1-0), a 26-year old right-hander, pitched a scoreless eighth inning to win in his major league debut.
It was Nunez s (2-1) third blown save in 16 chances.
Hanley Ramirez hit a two-run homer off starter C.J. Wilson in the sixth inning to give the Marlins a 2-1 lead. Wilson threw six innings, allowed two runs and two hits.
Marlins' ace Josh Johnson was in line for the win after allowing one run, four hits, and striking out seven. He is 4-1 with a 0.55 ERA in his last seven starts.
Notes: A pair of Rangers players extended their hitting streaks with singles in the first. Hamilton's RBI base hit to center gave the Rangers a 1-0 lead and gave him a career-long 11-game hitting streak. Prior to Hamilton's at-bat, Guerrero stretched his hitting streak to 12 games. ... The Marlins managed just three hits, but drew a season-high eight walks including three apiece by Dan Uggla and Gaby Sanchez.