It moves inside the cylinder to transform the expansion energy of an exploding gas (usually a mixture? of petrol or [diesel fuel]? and air) into mechanical energy (a linear? motion). From there it is conveyed through a rod? towards a crankshaft, transforming it into a rotational motion, usually driving a gearbox?.