Correct answer: immobile ions
The depletion layer in a PN junction is formed due to the diffusion of charge carriers, leaving behind immobile ions (positive ions in the N-region and negative ions in the P-region). These ions create an electric field that opposes further diffusion.