Thermalization of photons refers to their interactions with particles, achieving thermal equilibrium, which affects the Cosmic Microwave Background (CMB) spectrum. During the early universe, fluctuations in the baryon-photon plasma oscillate as acoustic waves, dissipating energy and leading to diffusion damping. At high redshifts, efficient interactions maintain a black body spectrum, but as the universe cools, these interactions diminish, resulting in a Bose-Einstein distribution and spectral distortions. The baryon-to-photon number density influences CMB energy spectrum through its impact on particle distributions and thermal equilibrium. Understanding these processes is crucial for analyzing CMB anisotropies and their origins.