Nitrogen-vacancy centers in diamond provide a route to electron spin resonance at nanometer scales. Learn how optical readout, microwave control and double-resonance methods enable detection of fewer than 10 molecular spins and measurement of their dipolar interactions.