This EMS volume, the first edition of which was published as Dynamical Systems II, EMS 2, familiarizes the reader with the fundamental ideas and results of modern ergodic theory and its applications to dynamical systems and statistical mechanics. The enlarged and revised second edition adds two new contributions on ergodic theory of flows on homogeneous manifolds and on methods of algebraic geometry in the theory of interval exchange transformations.