An overview of the theory of large deviations and applications to statistical mechanics.