Baghdad eclipsed Ctesiphon, the capital of the Sasanian Empire, which was located some 30 kilometers to the southeast, which had been under Muslim control since 637, and which became quickly deserted after the foundation of Baghdad.