The spark plug is located in the combustion chamber of each cylinder. It generates a high-voltage spark that ignites the fuel-air mixture, causing the piston to move and generate power. This process occurs at a specific point in the engine's cycle, controlled by the ignition timing, which is critical for optimal engine performance and efficiency.