We propose and analyze the spectral collocation approximation for the partial integrodifferential equations with a weakly singular kernel. The space discretization is based on the pseudo-spectral method, which is a collocation method at the Gauss-Lobatto quadrature points. We prove unconditional stability and obtain the optimal error bounds which depend on the time step, the degree of polynomia...