What does the cylinder do on a car?

The gas is shot into the cylinder where it is compressed, then ignited. This causes the cylinder to move up and down within the cylinder block. As the cylinders move they turn the drive shaft which then provides power to the car.