Oklahoma State’s football team had their 14-game home winning streak snapped as West Virginia beat the Cowboys 24-19 at Boone Pickens Stadium in Stillwater on Saturday.

The Mountaineers also ended a seven-game losing streak to the Cowboys.

WVU’s Jaylen Anderson rushed for 155 yards and two touchdowns, while OSU’s Ollie Gordon had 136 yards rushing on a day when both teams’ passing games struggled in the rain.

OSU was playing without quarterback Spencer Sanders, with Garret Rangel getting the start.

Rangel finished 18-for-42 passing for 178 yards.

OSU outgained the Mountaineers in total yards, 358-327.

The game started with three straight possessions ending in punts.

On OSU’s second possession, the Cowboys went three downs and out, and Logan Ward had a poor punt of just 30 yards.

West Virginia took advantage, scoring on the next play, as quarterback Garrett Greene kept for a 36 yard touchdown to put the Mountaineers on top 7-0 with 7:11 to play in the first quarter.

Four straight possessions ended in punts after that, with OSU going three-and-out twice.

The Cowboys put a drive together to end the first quarter, with Rangel passing to Brennan Presley for a gain of 32.

It set up a four-yard touchdown run by Presley on a lateral pass to start the second quarter and tie the game 7-7.

After an exchange of punts, Greene was intercepted by Jason Taylor at the WVU 33-yard line.

OSU got to the WVU 7-yard line, but on 4th and 1, Deondre Jackson was stopped for no gain and the Mountaineers took over on downs.

West Virginia punted back to Oklahoma State, and the Cowboys got points before the first half ended.

Rangel passed to Braydon Johnson for a gain of 43 yards to the Mountaineer 19-yard line.

OSU’s drive bogged down at the four and Tanner Brown kicked a 22-yard field goal to put the Pokes up 10-7 with 14 seconds left in the first half.

West Virginia got the ball to start the second half and went 80 yards in six plays, with Jaylen Anderson scoring on a 54-yard touchdown run to put the Mountaineers up 14-10 with 12:45 to play in the third quarter.

OSU had to punt after four downs, and it took WVU just two plays to score again.

It was Anderson again, finding a hole and going 57 yards for a touchdown to put the Mountaineers up 21-10 with 9:53 left in the third quarter.

Oklahoma State responded, getting a gain of 24 yards on a run by Ollie Gordon.

The Cowboys settled for a 38-yard field goal by Tanner Brown, who knocked it in off the right upright to cut the WVU lead to 21-13 with 5:59 left in the third quarter.

OSU’s defense stopped West Virginia on the ensuing possession, tackling Tony Mathis for no gain on 4th and 1 from the WVU 49-yard line.

It took the Cowboys five plays to convert the stop into points, with Ollie Gordon scoring on a 23-yard touchdown run.

OSU went for two points, but Rangel’s pass was incomplete, and it was 21-19 West Virginia with 24 seconds to play in the third quarter.

The Cowboys forced a WVU punt, but then gave the ball back, as Rangel fumbled a shotgun snap and Dante Stills recovered at the OSU 49-yard line.

The two teams exchanged punts, and then West Virginia marched inside the OSU 15-yard line, before settling for a 34-yard field goal by Casey Legg to extend their lead to 24-19 with 5:59 left in the fourth quarter.

OSU marched into West Virginia territory, but on 4th and 3 from the WVU 28, Rangel passed incomplete deep and the Mountaineers took over on downs with 1:50 to play.

West Virginia lost two yards on three downs, and got just a 28-yard punt, giving OSU the ball on their own 46-yard line with 1:29 left.

Rangel threw four incomplete passes, two deep, one dropped by John Paul Richardson, and one through the hands of Ollie Gordon with 1:07 left.

West Virginia took a knee twice to win the game.

The Cowboys finish the regular season 7-5 overall, 4-5 in Big 12 play.

OSU will find out their bowl destination on December 4.