Spinal fusion may be performed to treat scoliosis, which is an abnormal curvature of the spine.