We investigate the long-time behaviour of solutions to the Korteweg-de Vries equation with a zero order dissipation and an additional forcing term, when the space variable varies over $R$, and prove that it is described by a maximal compact attractor in $H^2(R)$.