He arrived at Athletic Bilbao in 2006, before his 18th birthday, quickly imposing himself as a starter and going on to appear in 251 official games over the course of six La Liga seasons, scoring 26 goals. In 2012, he signed with Bayern Munich for €40 million, going on to win nine consecutive Bundesliga titles as well as the UEFA Champions League in 2013 and 2020.