Seat belts function by restraining the body during a sudden deceleration, such as in a car accident. They spread the forces of a collision over the stronger parts of the body, such as the chest and pelvis, thereby minimizing the impact on more vulnerable areas like the head and spine. This reduction in movement helps prevent occupants from being ejected from the vehicle or colliding with the interior of the car.