This document provides an outline for deriving the Boltzmann equation in cosmology. It begins with a brief introduction to modern cosmology and thermal physics. It then discusses the Boltzmann equation, describing its development by Ludwig Boltzmann. It proceeds to derive the photon Boltzmann equation in an expanding universe, considering terms for the expansion of the universe, curvature, and gravitational potential. Finally, it discusses using the Boltzmann equation to study the evolution of cosmic structure and perturbations to the distribution function, including compton scattering terms.