In simple terms, the crankshaft is a mechanical component that converts the reciprocating (up-and-down) motion of the pistons into rotational (spinning) motion that can ultimately turn the wheels of a vehicle.
It is the backbone of the engine's "bottom end" and is responsible for delivering the engine's power output.