The anterior rami are branches of the spinal nerves that provide motor and sensory innervation to the anterolateral parts of the trunk and the limbs. They play a crucial role in forming major nerve plexuses such as the brachial and lumbosacral plexuses, which are essential for limb function.