Dear student,
Light has dual nature characteristics. It can behave as a particle or a wave depending on the situation. It behaves as a particle in photoelectric effect and as a wave in diffraction.
Kindly go through the links given below which explains all of these in detail.