Electromagnetic (EM) waves do not attenuate in a vacuum due to the conservation of energy and momentum, as there are no particles to absorb their energy. In a medium, EM waves interact with charged particles, dissipating energy primarily as heat. While the energy of EM waves spreads out as they propagate, this spreading is not considered attenuation since energy conservation remains intact. The inverse square law applies, meaning that as the distance from the source increases, the intensity decreases, but this is due to spatial spreading rather than energy loss. Ultimately, all finite sources will behave like point sources at sufficient distances, leading to a consistent application of the inverse square law.