He began his career at Real Zaragoza, before moving to Athletic Bilbao in 2011 and then to Manchester United for €36 million in 2014. With the English club, he won the FA Cup, FA Community Shield, EFL Cup and UEFA Europa League (where he was named man of the match in the competition Final), and was named as their player of the year for the 2016–17 season. He moved to Paris Saint-Germain in 2019, winning the domestic quadruple and starting in the UEFA Champions League Final against Bayern Munich in his first season, where PSG lost 1–0.