The compressed mixture, fired by a correctly timed electric spark, burns and expands, driving the piston down.