In this chapter we discuss relations between information theory and statistical mechanics. We show that the canonical and grand canonical distributions can be obtained from Shannon’s principle of maximum uncertainty [1, 2, 3]. Moreover, the time evolution of the entropy of an isolated system and the H theorem are discussed.