If the minority of carriers is less than its diffusion length from the PN junction, there is a chance of diffusion to the junction interface. There is a space charge region called depletion layer on both sides of the junction between p region and n region. A built-in electric field from the n region to the p region is formed between the positive and negative charges in the depletion layer.