VIGGIANO, Italy -- A powerful final burst from Diego Ulissi helped the Italian cyclist win the fifth stage of the Giro d'Italia on Wednesday, while Australian rider Michael Matthews retained the overall leader's pink jersey.

Ulissi came from behind with 150 metres to go to cross the line solo, with his arms raised high in celebration at the end of the 203-kilometre leg from Taranto to Viggiano.

Australia's Cadel Evans was second, with Julian David Arredondo Moreno of Colombia third, both of them in a group which crossed a second behind Ulissi in the first uphill finish of this year's Giro.

Weather again played a part, with wet and windy conditions, although there was sunshine on the five-kilometre climb to the finish.

Matthews fought hard to stay near the front in the final kilometre and finished sixth. He will wear the pink jersey for a fourth day, a record for an Australian cyclist.

The Orica-GreenEdge rider extended his lead to 14 seconds, with Dutchman Pieter Weening moving into second spot. Evans is third.

There was an early break of 11 riders and, although their lead rose and fell at several points, the Orica-led peloton was happy to control the gap to an average of four minutes.

There were several attempted breaks up front with 30km to go, but none stuck and the group was back together on the penultimate climb -- the first ascent up to Viggiano -- just before the slippery roads caused the first big crash of the day.

There were several more crashes as the rain made the tight and technical descent even trickier.

Gianluca Brambilla attacked bravely on the descent, opening up a 30-second advantage, but Joaquin Rodriguez's Katusha team chased him down and he was caught on the final climb, setting up the scintillating finish.

Thursday's stage is another hilly finish, up to Monte Cassino, the site of a major World War II battle. At 247km, it is the second longest stage of this year's race.

The Giro ends in Trieste on June 1.