Spain's Alejandro Valverde claimed victory on stage two of the Vuelta a Espana as Poland's Michal Kwiatkowski took the red jersey.
Valverde held off Team Sky's Kwiatkowski in a tight 50-metre sprint to secure victory in front of a partisan crowd in Caminito del Rey.
Kwiatkowski, who finished second in Saturday's time trial, has a 14-second lead over Valverde in the standings.
Britain's Simon Yates is in 12th place overall.
Quick Step's Laurens de Plus took third place on the stage, finishing three seconds behind the winner.
BMC Racing's Rohan Dennis, who won the first stage, suffered a puncture early in the 163.5km stage and was dropped with 17km remaining.
Kwiatkowski, the Polish national champion, attacked with 500 metres remaining, but was chased down by Valverde.
World champion Peter Sagan and Australia's Richie Porte both struggled with illness throughout, and finished well behind the leaders.
Last year's runner-up Vincenzo Nibali also struggled, leaving him in 82nd in the general classification.
Ireland's Daniel Martin finished one minute 15 seconds back - 11 seconds in front of Britain's Tao Geoghegan Hart. Fellow Britons Adam Yates and Steve Cummings finished 149th and 170th place respectively.
Monday's third stage is 178.2km from Mijas to Alhaurin de la Torre.