) nanosheets sandwiched between two liquid metal electrodes. The study revealed that two types of MXene with positive and negative surface potentials incorporated into p- and n-type ionoelastomers, respectively, facilitated the diffusion of mobile ions. This resulted in an enhanced current rectification of an ionic diode. The rectification of an ionic junction is further increased upon NIR exposure to the device due to the photothermal energy conversion of MXene. A facile control of the rectification ratio with both exposure time and power of NIR enabled the development of a switchable ionic logic gate. Herein, the AND-to-OR gate transition was reversibly manipulated by NIR exposure and device cooling programmed to the two ionic junctions in series.