An engine converts heat energy from fuel into mechanical energy. A petrol/gasoline engine uses an internal combustion process where fuel is ignited by a spark plug. It has four strokes - intake, compression, power, and exhaust. In a four-stroke petrol engine, these four strokes are completed in two revolutions of the crankshaft. A two-stroke petrol engine completes the four strokes in one revolution, making it simpler but less efficient. The major components of an engine include the cylinder, piston, crankshaft, valves, connecting rod, and camshaft.