Second behind the Quick Step rider on the race's second mountain-top finish in three days was Belgium's Nico Sijmans, with Martin Velits of Slovakia in third.

Race leader Nibali successfully defended his number one spot despite an attack by Spanish contender Ezequiel Mosquera on the final climb.

The Tour of Spain finishes in Madrid on Sept. 19.