The maximum entropy principle (MaxEnt) is one of the most powerful approaches in the theorist arsenal. It has been used in many areas of science, and, in particular, in both statistical mechanics and the quantum many body problem. Here we show how to derive MaxEnt from the laws of thermodynamics.