Memristors operate based on the principle of resistance change. When a voltage is applied, the resistance of the memristor changes depending on the direction and magnitude of the current flow. This change in resistance is preserved even when the power is turned off, allowing the memristor to "remember" its previous state. The resistance change is typically achieved through the movement of ionic species within a thin film material.