UNM (12-7-1, 4-2 Mountain West) built an early 4-0 lead, only to see Fresno State (13-7, 5-4) rally to tie the game by the seventh inning.
The Lobos put two runners on in the ninth as Sam Haggerty singled with one out and Chase Harris was intentionally walked with two outs. Closer Jake Shull then uncorked a wild pitch that enabled both runners to advance. The ball rolled toward the UNM dugout along the first base line. Shull fielded the ball and fired it toward home plate as Haggerty was trying to score. The throw got past catcher Taylor Ward, enabling Haggerty to score easily and Harris to come all the way around from first base with an insurance run.
The Bulldogs put two on with two outs in the bottom of the frame, but Victor Sanchez (2-0) struck out Trent Woodward to end the game.
Sanchez tossed 2.1 scoreless innings of relief for UNM. He struck out three while allowing one hit and two walks.
Starter Josh Walker gave up four runs, two earned, on 10 hits in 6.2 innings. The senior still has not allowed a walk in 37 innings this season.
The Lobos struck early and often Sunday. Alex Real's RBI double in the first inning got them started, followed by Aaron Siple's RBI single in the second, and finally Harris' RBI double and John Pustay's sacrifice fly in the third.
Fresno State countered with three runs in the third and then tied the game in the seventh on Jordan Luplow's RBI double.
The Lobos will return home for their next five games, starting Tuesday at 6 p.m. against Kansas.