II. Melanthus was succeeded by his son Codrus, a man whose fame finds more competitors in Roman than Grecian history. During his reign the Dorians invaded Attica. They were assured of success by the Delphian oracle, on condition that they did not slay the Athenian king. Informed of the response, Codrus disguised himself as a peasant, and, repairing to the hostile force, sought a quarrel with some of the soldiers, and was slain by them not far from the banks of the Ilissus [95]. The Athenians sent to demand the body of their king; and the Dorians, no longer hoping of success, since the condition of the oracle was thus violated, broke up their encampment and relinquished their design. Some of the Dorians had already by night secretly entered the city and concealed themselves within its walls; but, as the day dawned, and they found themselves abandoned by their associates and surrounded by the foe, they fled to the Areopagus and the altars of the Furies; the refuge was deemed inviolable, and the Dorians were dismissed unscathed--a proof of the awe already attached to the rites of sanctuary [96]. Still, however, this invasion was attended with the success of what might have been the principal object of the invaders. Megara [97], which had hitherto been associated with Attica, was now seized by the Dorians, and became afterward a colony of Corinth. This gallant but petty state had considerable influence on some of the earlier events of Athenian history.

III. Codrus was the last of the Athenian kings. The Athenians affected the motives of reverence to his memory as an excuse for forbidding to the illustrious martyr the chance of an unworthy successor. But the aristocratic constitution had been morally strengthened by the extinction of the race of Theseus and the jealousy of a foreign line; and the abolition of the monarchy was rather caused by the ambition of the nobles than the popular veneration for the patriotism of Codrus. The name of king was changed into that of archon (magistrate or governor); the succession was still made hereditary, but the power of the ruler was placed under new limits, and he was obliged to render to the people, or rather to the eupatrids, an account of his government whenever they deemed it advisable to demand it.

Athens: Its Rise and Fall, Complete — Part 58