Using the unique capability of JET to monotonically change the amplitude of the magnetic field ripple, without modifying other relevant equilibrium conditions, the effect of the ripple on the angular rotation frequency of the plasma column was investigated under the conditions of no external momentum input. The ripple amplitude was varied from 0.08% to 1.5% in Ohmic and ion-cyclotron radio-frequency (ICRF) heated plasmas. In both cases the ripple causes counterrotation, indicating a strong torque due to nonambipolar transport of thermal ions and in the case of ICRF also fast ions.