A diesel engine is an internal combustion engine that uses compression ignition to burn fuel, typically diesel, for powering vehicles, machinery, and generators, characterized by greater fuel efficiency compared to gasoline engines. They operate by compressing air inside the cylinder and then injecting fuel into the highly compressed hot air, causing spontaneous ignition without the need for a spark plug.