A microscopic theory is presented for the behavior of polyelectrolyte solutions between surfaces. The theory predicts oscillatory forces between hydrophobic surfaces immersed in dilute salt-free polyelectrolyte solutions. The period of the oscillation, p, scales with concentration, rho, as p similar to rho(-1/3) and p similar to rho(-1/2), in the dilute and semidilute solutions, respectively. With a small amount of excess salt, the oscillatory forces are replaced by a short-ranged, predominantly attractive force. Further addition of salt causes the force to become purely repulsive. These predictions can, in principle, be tested experimentally. (C) 1999 American Institute of Physics. [S0021-9606(99)52129-6].