Lecture notes of the Master's degree course "Statistical Mechanics" of Prof. Enzo Orlandini at the University of Padova. The notes are updated for the "Physics of Data" master course a.y. 2023/2024.