The camshaft of a Mazda MX-5 NA (1989–1997) controls the valves that allow air and exhaust gases to flow through the engine. This determines when the cylinders are filled and emptied. This timing is controlled by the timing belt, which synchronizes the camshaft and crankshaft in the engine—a process essential for proper combustion.