The invention concerns an engine with one or more ring cylinders of round cross-section; in each ring cylinder are provided at least two rotary pistons whose cross-sections match that of the ring cylinder, the pistons being mounted on the circumference of a rotary disc which is mounted on a shaft and incapable of rotating. Each ring cylinder is provided with disc cams in the form of rotary valves which protrude at their peripheral areas through slots which extend transversely in relation to the course of the ring cylinders. The invention is characterized by the fact that: a) the rotary valves engage in the overflow channels and in the ring cylinder between an intake compression chamber and an expansion chamber; b) the rotary valves engage in the ring cylinder between the expansion chamber and the intake compression chamber; c) the rotary valve grooves are so arranged as to clear the ring cylinder for the rotary pistons; d) the rotary valve recesses are so arranged as to clear the overflow channels immediately before or during closure of the aperture and during closure of the aperture by the rotary pistons.