In this Chapter we will present some applications of the large deviations technique to the calculation of entropy and free-energy of systems with long-range interactions. Indeed, most of the examples we will treat are simple mean-field models. However, it can be shown that some of the methods we discuss here are applicable to all systems for which the interaction decays slowly with the distance.