first, there is the power stroke, which is created after the spark ignites the compressed air/fuel mixture the piston is pushed downwards and relates the power to the crankshaft.
There is the exhaust stroke where the piston is now coming up and the exhaust valve opens to push the excess air out the exhaust port into the exhaust manifold.