The piston functions within the engine cylinder to withstand the force of high-pressure combustion gases generated by fuel ignition. Through the piston pin and connecting rod, it transmits this force to the crankshaft, thereby converting the chemical energy of the fuel into mechanical energy that drives engine operation.