During his career he was mostly associated to Barcelona, with which he won two La Liga championships and the 2006 Champions League, appearing in 175 competitive matches.