Light acts as both when it feels like it.
There are things it does such as diffraction which can be only explained by it being a wave (particles can't bend through gaps). However, quantisation can only be explained if it were a particle. Stuff like reflection and refraction can be explained by both models.
Basically, in order to explain all the stuff light does, it needs to be treated as both.