The most efficient engine developed is the Carnot engine.
The Carnot engine operates on the Carnot cycle that consists of two isothermal (expansion and compression) and adiabatic (compression and expansion) processes.
The Carnot cycle is built by envisioning that the heating can be done without changing the system's temperature at initially.
The processes being reversible in nature also helps in increasing the efficiency of Carnot engine.