This paper presents a derivation of the Bouguer law based on semiclassical electrodynamics. Within the framework of the relaxation theory an expression is obtained for the absorption coefficient. Contributions coming to the relaxation from the effect of spatial dispersion have been isolated and discussed.