A camshaft is critical to the basic function of an engine. Comprised of two distinct parts, the cams and the shaft, the camshaft is the element that enables valves to open. As the shaft rotates, the egg-shaped cams (or “lobes”) push the valves open in sync with the crankshaft gear.