He spent most of his career with Porto, appearing in 183 games and winning 11 honours including three Primeira Liga titles and the UEFA Europa League in 2011. Previously of Nacional, he totalled 144 games in Portugal's top flight. He additionally played for two years at São Paulo, and won the Süper Lig with Turkey's Galatasaray in 2018.