The Camshaft is a engine part, that opens and closes the valves to let the air-fuel mixture in and out of combustion chambers.
The camshaft uses lobes that push against the valves to open them as the camshaft rotates. Then, springs on the valves return them to their closed position.