But after the return of the Heracleidae and the partitioning of the country, it came to pass that many of the former inhabitants were driven out of their homelands into Attica by the Heracleidae and the Dorians who came back with them. Among these was Melanthus, the king of Messene. And he reigned also over the Athenians, by their consent, after his victory in single combat over Xanthus, the king of the Boeotians. But since Attica was now populous on account of the exiles, the Heracleidae became frightened, and at the instigation chiefly of the people of Corinth and the people of Messene—of the former because of their proximity and of the latter because Codrus, the son of Melanthus, was at that time king of Attica—they made an expedition against Attica. But being defeated in battle they retired from the whole of the land except the Megarian territory; this they occupied and not only founded the city Megara1
but also made its population Dorians instead of Ionians. And they also destroyed the pillar which was the boundary between the Ionians and the Peloponnesians.