After starting out at Estoril, he went on to spend the vast majority of his 16-year professional career with Porto and Chelsea, signing with the latter in 2004 for €20 million. He won several major titles with both clubs, including two Primeira Liga titles, three Premier League trophies and the 2004 and 2012 editions of the Champions League.