He managed to slide by Ferrari's Fernando Alonso (Spain) who finished second and Mercedes' Lewis Hamilton (Britain) in the last 10 laps of the 70 lap circuit at Mogyorod, some 18 km from Budapest, Xinhua reported.
Ricciardo won the Hungarian Grand Prix in one hour 53 minutes and 5.058 seconds. This win marks Ricciardo's second win of the season, following the Canadian Grand Prix in June. This win leaves him in third place in the drivers' championship with 131 points.
Mercedes' Nico Rosberg (Germany) was fourth, doing well enough to hold onto his overall lead in the drivers' championship with 202 points, 11 more than teammate Lewis Hamilton who is second with 191.
Hamilton, who finished third, again performed a near miracle, after a fire in his vehicle Saturday prevented him from driving in the qualifying rounds and forcing him to start way back in the Box Lane.
Hamilton navigated a track infamous for its twists, turns, and difficulty overtaking, passing 18 of the 20 cars that started ahead of him.
The Formula 1 competition will recess until Aug 24 and the Belgian Grand Prix.
In all there will be eight more heats, concluding in Abu Dhabi Nov 23.