Rotary engine is a term which can have two meanings:
World War I aircraft engine
A rotary piston engine was a 4-stroke aircraft engine used during World War I, similar to a radial engine, but with a stationary crankshaft and rotating crankcase and cylinders.
Unconventional heat engine