The camshaft is a rotating shaft which operates the valves in an engine.
The camshhaft is driven from the crankshaft at half engine speed by a gear train, chain, or toothed belt. The lobes on the camshaft are arranged to operate the valves in the correct sequence and with the correct timing.