This volume collects the lecture notes of a course on statistical mechanics, held at Scuola Normale Superiore di Pisa for third-to-fifth year students in physics and chemistry. Three main themes are covered in the book. The first part gives a compact presentation of the foundations of statistical mechanics and their connections with thermodynamics. Applications to ideal gases of material particles and of excitation quanta are followed by a brief introduction to a real classical gas and to a weakly coupled classical plasma, and by a broad overview on the three states of matter.The second part is devoted to fluctuations around equilibrium and their correlations. Coverage of liquid structure and critical phenomena is followed by a discussion o...