Statistical mechanics is the area of physics that allows connecting different physical scales and understanding how the behavior at the microscopic level of a system influences its behavior at the macroscopic level. We study the macroscopic properties of matter from a statistical analysis of its micro-states. Statistical physics provides the foundations of thermodynamics.