A soft-matter-based diode composed of hydrogel and liquid metal (eutectic gallium indium, EGaIn) is presented. The ability to control the thickness, and thus resistivity, of an oxide skin on the metal enables rectification. First, a simple model system with liquid-metal/electrolyte-solution/Pt interfaces is characterized. The electrically insulating oxide skin on the EGaIn electrode is reduced or oxidized further depending on the direction of the bias, thereby allowing unidirectional ionic current. The forward current of the diode increases as the conductivity of the electrolyte increases, whereas backward current depends on the pH of the medium in contact with the insulating oxide layer on the EGaIn electrode. As a result, the diode shows a higher rectification ratio (defined as the ratio of forward to backward current measured at the same absolute bias) with more conductive electrolyte at neutral pH. Replacement of the liquid electrolyte solution with a hydrogel improves the structural stability of the soft diode. The rectification performance also improves due to the increased ionic conductivity by the gel. Finally, a diode composed entirely of soft materials by replacing the platinum electrode with a second liquid-metal electrode is presented. Contacting each liquid metal with a polyelectrolyte gel featuring different pH values provided asymmetry in the device, which is necessary for rectification. A hydrogel layer infused with a strong basic polyelectrolyte removes the insulating oxide layer, allowing one interface with the EGaIn electrode to be conductive regardless of the direction of bias. Thus, the oxide layer at the other interface rectifies the current.