The quadratus lumborum muscles depress and stabilize the twelfth ribs and contribute to lateral bending of the trunk. Acting together, the muscles may extend the lumbar part of the vertebral column. They are innervated by anterior rami of T12 and L1 to L4 spinal nerves.