The question involves understanding the formation of the depletion layer in a p-n junction. A p-n junction is created when a p-type semiconductor is brought into contact with an n-type semiconductor. The key concept here is the movement of charge carriers, which leads to the formation of the depletion region.
Therefore, the correct answer is diffusion of charge carriers, as it is this diffusion process that results in the formation of the depletion layer in the p-n junction.
Understanding these concepts is crucial for analyzing the behavior of semiconductors and their applications in electronic devices.

