BackgroundIntrafractional motion results in local over- and under-dosage in particle therapy with a scanned beam. Scanned beam delivery offers the possibility to compensate target motion by tracking with the treatment beam.MethodsLateral motion components were compensated directly with the beam scanning system by adapting nominal beam positions according to the target motion. Longitudinal motion compensation to mitigate motion induced range changes was performed with a dedicated wedge system that adjusts effective particle energies at isocenter.ResultsLateral compensation performance was better than 1% for a homogeneous dose distribution when comparing irradiations of a stationary radiographic film and a moving film using motion compensation. The accuracy of longitudinal range compensation was well below 1 mm.ConclusionMotion compensation with scanned particle beams is technically feasible with high precision.