PN-junction diode works as a insulator, if connected :
In reverse bias no current flows.
The PN junction diode is used as