A diesel engine is an internal combustion engine that operates on the principle of compression ignition. It uses diesel fuel, which is injected into the combustion chamber, mixed with compressed air, and ignited by the high temperature caused by compression. This combustion process drives the engine's pistons, converting chemical energy from diesel fuel into mechanical energy, which is used to power various machines and vehicles.