A rocking bed foundation includes an upper frame supported on rollers over a lower frame such that the upper frame can support a mattress for transverse reciprocal movement under the influence of a driver mounted within the foundation and further such that the upper frame can be locked to prevent movement when the driver is disengaged.