Thābit and his pupils lived in the midst of the most intellectually vibrant, and probably the largest, city of the time, Baghdad. Thābit came to Baghdad in the first place to work for the Banū Mūsā becoming a part of their circle and helping them translate Greek mathematical texts. What is unknown is how Banū Mūsā and Thābit occupied himself with mathematics, astronomy, astrology, magic, mechanics, medicine, and philosophy. Later in his life, Thābit's patron was the Abbasid Caliph al-Mu'tadid (reigned 892–902), whom he became a court astronomer for. Thābit became the Caliph's personal friend and courtier. Thābit died in Baghdad in 901. His son, Sinan ibn Thabit and grandson, Ibrahim ibn Sinan would also make contributions to the medicine and science. By the end of his life, Thābit had managed to write 150 works on mathematics, astronomy, and medicine. With all the work done by Thābit, most of his work has not lasted time. There are less than a dozen works by him that have survived.