A device for treating obesity of a patient, the device comprising: at least one operable stretching device implantable in the patient and adapted to stretch a portion of the patient's stomach wall, and an implantable control unit for automatically controlling the operable stretching device, when the control unit and stretching device are implanted, to stretch the stomach wall portion in connection with the patient eating such that satiety is created.