The two armies soon met, and prepared for battle. Codrus, having consulted an oracle, had learned that the victory would be given to the army whose king should be killed, so he nobly made up his mind to die for the good of his people.
Instead of going into battle in royal dress, with his guards all around him, as was his habit, he dressed himself like an ordinary soldier, and went forward until he stood in the very first rank of the army. Then he rushed boldly into the midst of the foe.
Of course, he was soon cut down; but the Athenians, seeing his courage, and learning why he had thus risked his life, fought with such valor that they defeated the Spartan forces, and forced them to retreat.
The victory had been won; but the Athenians were so sorry to lose their beloved king, that they could not rejoice, and sadly returned home, carrying the body of Codrus. Such was the admiration of all the people for this act of royal courage, that they vowed they would never again call any one by the name of king.
When Codrus had been buried, therefore, the Athenians gave his son and heir the government of the city, calling him archon, or chief for life,a title which was borne by many rulers after him.
The Spartans, who had come into Attica to fight the Athenians, retreated hastily after their defeat, and returned to their city, where they settled, forcing all the people who dwelt in the neighborhood either to leave the country or to serve them as their slaves.
The return of the Heraclidae into the Peloponnesus is the last event of the Heroic Age, and now real history begins. After this, it is no longer necessary to try to find out the truth hidden in the old tales which were handed down from father to son, and which were the only fairy stories the Greek children knew; for henceforth records were kept of all the principal events.