Heat engines obtain their power by burning fuel - the chemical energy in the fuel is released by ignition to make the gas very hot. This causes a force which pushes the piston down the cylinder.