Two punctures and a mechanical issue have denied Kiwi mountain biker a leading finish at the Rio Olympics.
The 20-year-old withdrew with a lap to go on the taxing 32.4km cross country course to finish in 37th place.
The race was won by Switzerland's Nino Schurter who won silver in London and bronze in Beijing ahead of London gold medallist Jaroslav Kulhavy from the Czech Republic and Spain's Carlos Coloma Nicolas.
Gaze, the world junior champion, suffered a puncture on the first lap and then was hit with further woes on the third lap to slip well down the field and he pulled out on lap six.
Only 34 of the 49 riders completed the race with world road race champion Peter Sagan among the casualties.