A metric graph is a pair (G, d), where G is a graph and d :for all edges vw ∈ E(G). The p-dimension of G is the least integer k such that there exists an isometric embedding of (G, d) in k p for all distance functions d such that (G, d) has an isometric embedding in K p for some K. It is easy to show that p-dimension is a minor-monotone property. In this paper, we characterize the minor-closed graph classes C with bounded p-dimension, for p ∈ {2, ∞}. For p = 2, we give a simple proof that C has bounded 2-dimension if and only if C has bounded treewidth. In this sense, the 2-dimension of a graph is 'tied' to its treewidth.For p = ∞, the situation is completely different. Our main result states that a minorclosed class C has bounded ∞-dimension if and only if C excludes a graph obtained by joining copies of K4 using the 2-sum operation, or excludes a Möbius ladder with one 'horizontal edge' removed.