Cosmology has become a very active research field in the last decades thanks to the impressing improvement of our observational techniques which have led to landmark discoveries such as the accelerated expansion of the universe, and have put physicists in front of new mysteries to unveil, such as the quest after the nature of dark matter and dark energy. These notes offer an approach to cosmology, covering fundamental topics in the field: the expansion of the universe, the thermal history, the evolution of small cosmological perturbations and the anisotropies in the cosmic microwave background radiation. Some extra topics are presented in the penultimate chapter and some standard results of physics and mathematics are available in the last chapter in order to provide a self-contained treatment. These notes offer an in-depth account of the above-mentioned topics and are aimed to graduate students who want to build an expertise in cosmology. Preface.- Notation.- Cosmology.- The expanding universe and its content.- Cosmological observations.- Redshift.- Open problems in cosmology.- The universe in expansion.- Newtonian cosmology.- Relativistic cosmology.- Friedmann equations.- Solutions of the Friedmann equations.- Distances in cosmology.- Thermal history.- Thermal equilibrium and Boltzmann equation.- Short summary of thermal history.- The distribution function.- The entropy density.- Photons.- Neutrinos.- Boltzmann equation.- Boltzmann equation with a collisional term.- Big-Bang Nucleosynthesis.- Recombination and decoupling.- Cosmological perturbations.- From the perturbations of the FLRW metric to the linearised Einstein tensor.- Perturbation of the energy-momentum tensor.- The problem of the gauge and gauge transformations.- Normal mode decomposition.- Einstein equations for scalar perturbations.- Einstein equations for tensor perturbations.- Einstein equations for vector perturbations.- Perturbed Boltzmann equations.- General form of the perturbed Boltzmali