Formed at Osasuna, he spent most of his career at Atlético Madrid, scoring 46 goals in 329 games across all competitions over eight seasons and winning six major titles, including the 2014 national championship and the 2010 Europa League. In 2015 he signed with Athletic Bilbao, going on to have an equally lengthy spell and win the 2020–21 Supercopa de España.