During the power stroke of a petrol engine the;
Inlet valve opens
Piston moves down
Expanding gas pushes the piston down
Bunt gas is pushed out from the cylinder