An apparatus for temperature controlling an endocavity such as the rectum during thermal therapy of nearby tissues is disclosed. In some aspects the apparatus is mechanically configured to best conform to the patient. In other aspects the apparatus is designed to eliminate gas bubbles from forming or accumulating in certain volumes that would interfere with the thermal therapy. In other aspects the apparatus is optimized for use in cooling the rectum during ultrasound thermal therapy of the prostate.