Slovenian cyclist Luka Pibernik celebrates what he thought was a win on stage five of the Giro d'Italia, but there was still one lap to go.

Luka Pibernik will not look back on stage five of the Giro d'Italia cycle race with much fondness.

The Slovenian cyclist thought he had sprinted to a memorable win for his Bahrain-Merida team on the 159-kilometre stage five from Pedara to Messina on Wednesday (Thursday NZ time), raising both arms in the air in celebration as he crossed the finish line.

The unfortunate thing for the 23-year-old was there was a bloke nearby ringing a bell to indicate there was still another 6.2km lap to go around Messina before the stage finished.

LAPRESSE Quick-Step rider Bob Jungels rides in the pink jersey as leader of the Giro d'Italia.

Pibernik had to fall back to the pack, presumably rather embarrassed, and ended up finishing 20 seconds adrift from the peloton in 148th.

READ MORE:

*Tour de France champ 'rammed'

Colombia's Fernando Gaviria won the actual sprint finish a lap later, while his Quick-Step teammate Bob Jungels remained in the overall lead.