Gearboxes function a critical role in transmitting power from an engine to the wheels of a vehicle. They achieve this by utilizing a set of components of various sizes, enabling the driver to modify the speed and torque delivered to the wheels. This manipulation is crucial for optimizing vehicle performance across a variety of driving conditions.