People who undergo ECT receive an anesthetic. An anesthetic is a medicine that puts a patient into a sleep-like state. This prevents people from feeling any pain or discomfort during the procedure.