A cam is a rotating or sliding piece in a mechanical linkage used to transform simple motion into a more complex, often reciprocating or oscillating, movement. Its unique profile precisely controls the action of a follower, allowing for specific timing and force transmission within a system.