Ideally, a diode acts like a perfect conductor (zero resistance) when forward biased and like a perfect insulator (infinite resistance) when reverse biased. It is impossible to build such a device. Is there any device that acts like an ideal diode? Yes. An ordinary switch has zero resistance when closed and infinite resistance when open. Therefore, an ideal diode acts like a switch that closes when forward biased and opens when reverse biased. Figure below summarizes the switch idea.