Abu Ma'shar was a native of Balkh in Khurasan, one of the main bases of support of the Abbasid revolt in the early 8th century. Its population, as was generally the case in the frontier areas of the Arab conquest of Persia, remained culturally dedicated to its Sassanian and Hellenistic heritage. He probably came to Baghdad in the early years of the caliphate of al-Maʾmūn (r. 813–833). According to An-Nadim's "Al-Fihrist" (10th century), he lived on the West Side of Baghdad, near "Bab Khurasan", the northeast gate of the original city on the west Bank of the Tigris.