OXFORD, Miss. >> Kentucky dragged another highly ranked opponent into the muck, and this time coach Mark Stoops and the Wildcats closed the deal.

Kentucky upset No. 6 Mississippi 20-17 on Saturday, when Rebels kicker Caden Davis hooked a 48-yard field-goal attempt way wide with 48 seconds left in the fourth quarter to give the Wildcats their highest-ranked win of Stoops’ 12-year career.

“It was our kind of game. A dirty, ugly, hard-fought game,” Stoops said. “We went out and did what we had to do. We played our way. I know it’s only one game, but it was a very important game for us. Obviously, I could not be more proud of this team.”

The Rebels had a seven-game winning streak snapped and were shocked as a 15 1/2-point favorite according to BetMGM Sportsbook in their SEC opener.

“Beyond disappointing. It’s a disappointing day,” Mississippi coach Lane Kiffin said. “The game comes down at the end with us having a chance to win in every phase and we didn’t do it. Got to give credit to Stoops.”

The Wildcats took a three-point lead with 2:25 left in the fourth quarter, with a little fumble luck. Backup quarterback Gavin Wimsatt was heading toward the goal line with a keeper when an Ole Miss defender knocked the ball free — right to tight end Josh Kattus, who fell into the end zone.

Two weeks after Stoops faced criticism for not being aggressive enough late in the game on fourth down in a 13-12 loss against then-No. 1 Georgia, the Wildcats’ go-ahead drive was kept alive with a 63-yard completion from Brock Vandagriff to Barion Brown on fourth-and-7 at the Kentucky 20.

Vandagriff passed for 243 yards and a touchdown, helping Kentucky play keep-away from the Rebels’ high-powered offense. The Wildcats held the ball for nearly 40 minutes.