Let [Formula: see text] be a graph of order [Formula: see text] and [Formula: see text] an integer not great than [Formula: see text]. Erdős and Sós conjectured that if [Formula: see text] has at least [Formula: see text] edges, then [Formula: see text] contains all trees of order [Formula: see text]. Loebl, Komlós and Sós conjectured that if at least [Formula: see text] vertices of [Formula: see text] have degree at least [Formula: see text], then [Formula: see text] contains all trees of order [Formula: see text]. In this paper, it is shown that both the conjectures are true for graphs with independence number two, and our results generalize some known results.