Malachy once more assumed the reins of government by common consent, and proved himself fully equal to the task. A month before his death he gained an important victory over the Danes at Athboy, A.D. 1022. An interregnum of twenty years followed his death, during which the country was governed by two wise men, Cuan O'Lochlann, a poet, and Corcran Cleireach, an anchoret. The circumstances attending Malachy's death are thus related by the Four Masters:—"The age of Christ 1022. Maelseachlainn Môr, pillar of the dignity and nobility of the west of the world, died in Croinis Locha-Aininn, in the seventy-third year of his age, on the 4th of the nones of September, on Sunday precisely, after intense penance for his sins and transgressions, after receiving the body of Christ and His blood, after being anointed by the hands of Amhalgaidh, successor of Patrick, for he and the successor of Colum-Cille, and the successors of Ciaran, and most of the seniors of Ireland were present [at his death], and they sung masses, hymns, psalms, and canticles for the welfare of his soul."