Surgery is generally considered a last resort for chronic constipation, particularly when other treatments have failed, and the condition severely impacts quality of life. Surgical options may include rectocele repair, colectomy, or procedures to correct pelvic organ prolapse. It is crucial to have a thorough discussion with a gynecologist to understand the risks and benefits of surgical intervention.