  In those lecture notes, we review some applications of heat semigroups
methods in Riemannian and sub-Riemannian geometry. The notes contain parts of
courses taught at Purdue University, Institut Henri Poincar\'e, Levico Summer
School and Tata Institute.
