The depletion layer in a p-n junction is the region around the junction where mobile charge carriers (electrons and holes) have diffused across and recombined.
This leaves behind only immobile ions, which create an electric field but do not conduct current.
Since it lacks free charge carriers, the region behaves like an insulator, resulting in high electrical resistance.