1: \begin{abstract}
2: In this article, we prove that if a finitely presented group has an asymptotic cone which is tree-graded with respect to a precise set of pieces then it is relatively hyperbolic.
3: This answers a question of M.~Sapir.
4: \end{abstract}
5: