RRAM works by utilizing a dielectric material sandwiched between two electrodes. When a voltage is applied, a conductive filament forms within the dielectric material, changing its resistance. This change in resistance can be reversed by applying a different voltage, allowing the material to switch between high-resistance (off) and low-resistance (on) states to represent binary data.