The Revolt of Babylon in 626 BC refers to the revolt of the general Nabopolassar and his war of independence until he successfully consolidated control of Babylonia in 620 BC, defeating the Neo-Assyrian Empire which had ruled Babylonia for more than a century. The revolt saw the formation of the Neo-Babylonian Empire and was one of the key factors contributing to the fall of Assyria; twenty years after the revolt had begun, Nabopolassar's army and that of his ally, Cyaxares of the Medes, had destroyed the Neo-Assyrian Empire.