The essential condition for diffraction of light to occur is when the light encounters an obstacle or aperture that is comparable in size to the wavelength of the light. Diffraction is a phenomenon that occurs when waves (including light waves) encounter an obstacle or pass through an opening and spread out into the region behind the obstacle or aperture.
In the case of light, it is a wave phenomenon, and its behavior is governed by the principles of wave optics. When light passes through a narrow slit, or around the edges of an obstacle, its wave nature causes it to spread out and create a pattern of alternating dark and bright regions known as the diffraction pattern.
The degree of diffraction depends on the relationship between the wavelength of light (λ) and the size of the obstacle or aperture (d). If the size of the obstacle or aperture is much larger than the wavelength of light (d >> λ), the diffraction effects are minimal, and the light behaves more like a straight beam (geometrical optics). However, if the size of the obstacle or aperture is on the same order of magnitude as the wavelength (d ~ λ), significant diffraction occurs, and the wave nature of light becomes more apparent.
In summary, the essential condition for diffraction of light to occur is that the size of the obstacle or aperture should be comparable to the wavelength of the light. This condition allows the wave nature of light to manifest and create characteristic diffraction patterns.