Alex Gilbey scored a late goal to help MK Dons secure a 2-1 victory over Harrogate in their Sky Bet League Two match at Stadium MK.
Joe White gave MK Dons the lead, but Zico Asare's deflected shot looked to have earned Harrogate a draw in stoppage time.
However, Gilbey's goal soon after ensured Scott Lindsey's team ended their winless run of five games.
MK Dons took the lead in the 27th minute when loanee Joe White beat two defenders and found the back of the net.
Harrogate came close to equalizing through Oliver Sanderson's blocked shot and Ellis Taylor's deflected effort hitting the post.
Harrogate had opportunities in the second half with Josh March and Bryant Bilongo missing chances, and Toby Sims hitting the post.
MK Dons also had their chances with Charlie Waller's header saved by Harrogate goalkeeper James Belshaw, and Joe Tomlinson's shot narrowly missing the target.
Harrogate thought they had salvaged a point with Asare's goal in added time, but Gilbey's powerful strike from outside the box secured the win for MK Dons just moments later.