Inlet valve is closed, and the piston moves back up the cylinder, doing work on the gas and increasing pressure. Right before the end of the stroke, the spark plug creates a spark and ignites the mixture. Temperature + pressure suddenly increase at an almost constant volume.