A device for disinfecting and/or sterilization of a dental cavity includes: an electrode pair that extends into the cavity to provide current along a portion of the cavity and a controller that sends controlled electrical energy to the cavity via current flowing between the electrodes when located in the cavity, thereby to provide electrical energy for disinfection and/or sterilization.