The piston rings act to carry heat away from the hot piston into the cooled cylinder wall/block of the engine. Heat energy flows from the piston groove into the piston ring and then into the cylinder wall where it eventually will be transferred into the engine coolant.