the formation of pn junction, the holes from p-region diffuse into the M-region and electrons from n-region diffuse into p-region and electron hole pair combine and get annihilated. This in turn, produces potential barrier VB across the junction which opposes the further diffusion through the junction. Thus, small region forms in the vicinity of i the junction which is depleted of free charge carrier and has only immobile ions is called the depletion regions.