We describe the implementation of optimal controllers for damping the motion of cantilevers used in magnetic resonance force microscopy. We demonstrate that optimal control is achievable and that torsional magnetic coupling provides an effective actuation method. Cantilever Brownian vibrational amplitude was reduced from 2 to 0.16 Angstrom and resonant quality was reduced from 2000 to 5. Applied control fields were sufficiently small that they would not affect magnetic resonance phenomena. (C) 1996 American Institute of Physics.