Oldham Athletic a fantastic second half showing as goals from George Edmundson, Jordan Lyden and Callum Lang turned things around for the home side.
George Maris had put the visitors in front after a terrific strike from distance, but Oldham reacted well at half-time to take home the three points.
Latics fell behind with virtually the first chance of the game as Maris picked up the ball around 35 yards out and he unleashed an unstoppable effort past Alex Palmer.
Maris then turn provided for Paul Lewis who tried his luck from distance, but he could only curl the effort over the bar.
Maris then found himself clean through on goal after a pass from Jabo Iberhe, but this time Palmer denied the Cambridge goalscorer.
Latics settled down and started producing crosses from wide areas, but David Forde seemed to be equal for everything as he punched most things away from his goal.
Latics did create a good opening as Dan Gardner’s freekick fell to Andy Taylor, but the defender saw his shot blocked by Jake Carroll in front of the Cambridge goal.
Frankie Bunn must have worked his magic at half-time as Latics came out like a steam train in the second half.
An Oldham corner fell nicely to Cameron Dummigan, but the fullback couldn’t keep his effort down.
However, it was from another corner that Latics dragged themselves level as Edmundson raised highest to plant a header into the corner.
Maris hit another effort wide before Bunn introduced striker Sam Surridge on his long-awaited return from injury.
Moments later goalkeeper Forde came rushing out of his goal and gifted the ball to Lyden who passed the ball into the net from just inside the Cambridge half.
The ball took an age to go in, but the Latics players, staff and fans didn’t care as Boundary Park erupted.
The game was all but wrapped up five minutes later as Surridge played the ball into Lang, who drove at the Cambridge back four before smashing an effort through the hands of Forde.
It was very much a game of two halves for Latics on the afternoon, but a return to winning ways in the league was all that mattered in the end.
Attendance 3818 (290 Away)
Oldham Athletic
Palmer, Hunt, Clarke ©, Edmundson, Taylor, Dummigan (Surridge 70’), Gardner (Maouche 67’), Lyden, Branger-Engone, Lang, Miller
Cambridge United
Forde, Halliday (John 50’), Carroll, Taft, Taylor, Deegan ©, Azeez (Amoo 70’), Iberhe, Maris, Brown, Lewis (Dunk 78’)