We consider a nonlocal boundary value problem for a viscoelastic equation with a Bessel operator and a weighted integral condition and we prove a general decay result.We also give an example to show that our general result gives the optimal decay rate for ceratin polynomially decaying relaxation functions.This result improves some other results in the literature.