A camshaft is a crucial component in an engine that controls the timing and duration of the engine's intake and exhaust valves. It plays a vital role in determining the overall performance and efficiency of the engine.