We study asymptotic cones of mapping class groups. The main result states that the asymptotic cones equivariantly embed into a direct product of finitely many $\mathbb{R}$--trees. Several known and new algebraic properties of the mapping class group follow. This is joint work with J. Behrstock and C. Drutu.