The depletion region in a p-n junction consists of:
The depletion region forms due to diffusion, leaving behind immobile ionized donors (positive) on the n-side and ionized acceptors (negative) on the p-side, devoid of free charge carriers.
Ref: NCERT Physics Textbook for Class XI and XII, Chapter: Units and Measurements and Physical World, Topic: Dimensional analysis and fundamental principles.