Cameron Bairstow scored 17 points to lead No. 20 New Mexico over Wyoming 63-59 on Wednesday night to hand the Cowboys their third straight loss.
Hugh Greenwood added 13, Kendall Williams 12 and Alex Kirk 10 for the Lobos (18-3, 5-1 Mountain West).
New Mexico has won 10 of its last 12 games against Wyoming and five of the last six in Laramie.
The Cowboys (15-5, 2-5) were led by Derrious Gilmore's 15 points, all of which came on 3-pointers. Riley Grabau and Leonard Washington had 11 apiece. Wyoming hit 12-of-22 3-pointers in the game, but New Mexico dominated play in the paint — outscoring the Cowboys 28-12 inside and winning the boards 35-23.
Wyoming led 28-27 at the half thanks primarily to its 7-of-10 shooting from 3-point range. Gilmore hit three treys, and Grabau two.
The Cowboys started the second half with two free throws by Larry Nance Jr. for a 30-27 lead, but the Lobos went on an 8-0 run for a five-point advantage.
New Mexico went up by as many as nine points in the second half before Wyoming tied the game at 59-all on Grabau's 3-pointer with 23 seconds left.
But Greenwood hit a jumper with 8 seconds left and sank two free throws a second later after Wyoming turned the ball over when Washington overthrew everyone on an in-bounds pass.