According to Rosenfeld and Ihsanoglu, al-Majriti was from Madrid and worked under the Caliphs al-Hakim II and Hisham II. He was considered the chief of the Andalusian mathematicians of his time and was also the teacher of many astronomers. He revised Ibn Qurra's 'Figure of Secants' and Khwarizimi's 'Zij' and wrote two works on the construction of the astrolabe (Rosenfeld and Ihsanoglu, Mathematicians, Astronomers and Other Scholars of Islamic Civilisation and their Works (7-19th Century), Istanbul, 2003, p.106, no. 281).
As early as 1252 AD, the Ghayat al-Hakim had been translated into Latin at the order of King Alfonso, and was given the title Picatrix. It was translated into Hebrew in the 15th century and printed in Latin and Arabic in Rotterdam in 1702 (Babel magazine, 1952, p. 49).
Another copy of the work, dated 1255 AD was sold at Christie's, London, 26 April 2012, lot 123 and another dated to the 14th century, is in the Chester Beatty Library, Dublin (A.J. Arberry, A Handlist of the Arabic Manuscripts, Vol. II, Dublin, 1956, p.30, no. 3133).