A medical apparatus includes a probe configured for insertion into a body of a patient. The probe includes a plurality of electrodes configured to contact tissue within the body. The medical apparatus further includes an electrical signal generator configured to apply between one or more pairs of the electrodes signals of first and second types in alternation. The signals of the first type include a sequence of bipolar pulses having an amplitude sufficient to cause irreversible electrophoresis (IRE) in the tissue contacted by the electrodes. The signals of the second type include a radio-frequency (RF) signal having a power sufficient to thermally ablate the tissue contacted by the electrodes.