A camshaft is a rod that mechanically turns to convert rotary motion into reciprocating motion.
In the case of an engine, a camshaft is a part of the engine that regulates the opening and closing of an IC engine’s inlet and exhaust valves. A camshaft has more than one cam.