Surgery is usually a last resort when other treatments have not been effective. Surgical options include intrathecal baclofen therapy, where a pump is implanted to deliver medication directly to the spinal cord, and selective dorsal rhizotomy, which involves cutting nerve roots to reduce spasticity.