Omar Khayyam was born in 1048 in Nishapur, a leading metropolis in Khorasan during medieval times that reached its zenith of prosperity in the eleventh century under the Seljuq dynasty.
Nishapur was also a major center of the Zoroastrian religion, and it is likely that Khayyam's father was a Zoroastrian who had converted to Islam.
His full name, as it appears in the Arabic sources, was Abu’l Fath Omar ibn Ibrahim al-Khayyam.

In medieval Persian texts he is usually simply called Omar Khayyam.
Although open to doubt, it has often been assumed that his forebears followed the trade of tent-making, since Khayyam means tent-maker in Arabic.
The historian Bayhaqi, who was personally acquainted with Omar, provides the full details of his horoscope: "he was Gemini, the sun and Mercury being in the ascendant[...]".
This was used by modern scholars to establish his date of birth as 18 May 1048.

His boyhood was spent in Nishapur.
His gifts were recognized by his early tutors who sent him to study under Imam Muwaffaq Nishaburi, the greatest teacher of the Khorasan region who tutored the children of the highest nobility.
Khayyam was also taught by the Zoroastrian convert mathematician, Abu Hassan Bahmanyar bin Marzban.
After studying science, philosophy, mathematics and astronomy at Nishapur, about the year 1068 he traveled to the province of Bukhara, where he frequented the renowned library of the Ark. In about 1070 he moved to Samarkand, where he started to compose his famous treatise on algebra under the patronage of Abu Tahir Abd al-Rahman ibn ʿAlaq, the governor and chief judge of the city.
Omar Khayyam was kindly received by the Karakhanid ruler Shams al-Mulk Nasr, who according to Bayhaqi, would "show him the greatest honour, so much so that he would seat [Omar] beside him on his throne".

In 1073–4 peace was concluded with Sultan Malik-Shah I who had made incursions into Karakhanid dominions.
Khayyam entered the service of Malik-Shah in 1074–5 when he was invited by the Grand Vizier Nizam al-Mulk to meet Malik-Shah in the city of Marv.
Khayyam was subsequently commissioned to set up an observatory in Isfahan and lead a group of scientists in carrying out precise astronomical observations aimed at the revision of the Persian calendar.
The undertaking began probably in 1076 and ended in 1079 when Omar Khayyam and his colleagues concluded their measurements of the length of the year, reporting it to 14 significant figures with astounding accuracy.

After the death of Malik-Shah and his vizier (murdered, it is thought, by the Ismaili order of Assassins), Omar fell from favour at court, and as a result, he soon set out on his pilgrimage to Mecca.
A possible ulterior motive for his pilgrimage reported by Al-Qifti, was a public demonstration of his faith with a view to allaying suspicions of skepticism and confuting the allegations of unorthodoxy (including possible sympathy to Zoroastrianism) levelled at him by a hostile clergy.
He was then invited by the new Sultan Sanjar to Marv, possibly to work as a court astrologer.
He was later allowed to return to Nishapur owing to his declining health.
Upon his return, he seems to have lived the life of a recluse.

Omar Khayyam died at the age of 83 in his hometown of Nishapur on 4 December, 1131, and he is buried in what is now the Mausoleum of Omar Khayyam.
One of his disciples Nizami Aruzi relates the story that some time during 1112–3 Khayyam was in Balkh in the company of Al-Isfizari (one of the scientists who had collaborated with him on the Jalali calendar) when he made a prophecy that "my tomb shall be in a spot where the north wind may scatter roses over it".
Four years after his death, Aruzi located his tomb in a cemetery in a then large and well-known quarter of Nishapur on the road to Marv.
As it had been foreseen by Khayyam, Aruzi found the tomb situated at the foot of a garden-wall over which pear trees and peach trees had thrust their heads and dropped their flowers so that his tomb stone was hidden beneath them.
Omar Khayyam was born in 1048 in Nishapur, a leading metropolis in Khorasan during medieval times that reached its zenith of prosperity in the eleventh century under the Seljuq dynasty. Nishapur was also a major center of the Zoroastrian religion, and it is likely that Khayyam's father was a Zoroastrian who had converted to Islam. His full name, as it appears in the Arabic sources, was Abu’l Fath Omar ibn Ibrahim al-Khayyam.
In medieval Persian texts he is usually simply called Omar Khayyam. Although open to doubt, it has often been assumed that his forebears followed the trade of tent-making, since Khayyam means tent-maker in Arabic. The historian Bayhaqi, who was personally acquainted with Omar, provides the full details of his horoscope: "he was Gemini, the sun and Mercury being in the ascendant[...]". This was used by modern scholars to establish his date of birth as 18 May 1048.
His boyhood was spent in Nishapur. His gifts were recognized by his early tutors who sent him to study under Imam Muwaffaq Nishaburi, the greatest teacher of the Khorasan region who tutored the children of the highest nobility. Khayyam was also taught by the Zoroastrian convert mathematician, Abu Hassan Bahmanyar bin Marzban. After studying science, philosophy, mathematics and astronomy at Nishapur, about the year 1068 he traveled to the province of Bukhara, where he frequented the renowned library of the Ark. In about 1070 he moved to Samarkand, where he started to compose his famous treatise on algebra under the patronage of Abu Tahir Abd al-Rahman ibn ʿAlaq, the governor and chief judge of the city. Omar Khayyam was kindly received by the Karakhanid ruler Shams al-Mulk Nasr, who according to Bayhaqi, would "show him the greatest honour, so much so that he would seat [Omar] beside him on his throne".
In 1073–4 peace was concluded with Sultan Malik-Shah I who had made incursions into Karakhanid dominions. Khayyam entered the service of Malik-Shah in 1074–5 when he was invited by the Grand Vizier Nizam al-Mulk to meet Malik-Shah in the city of Marv. Khayyam was subsequently commissioned to set up an observatory in Isfahan and lead a group of scientists in carrying out precise astronomical observations aimed at the revision of the Persian calendar. The undertaking began probably in 1076 and ended in 1079 when Omar Khayyam and his colleagues concluded their measurements of the length of the year, reporting it to 14 significant figures with astounding accuracy.
After the death of Malik-Shah and his vizier (murdered, it is thought, by the Ismaili order of Assassins), Omar fell from favour at court, and as a result, he soon set out on his pilgrimage to Mecca. A possible ulterior motive for his pilgrimage reported by Al-Qifti, was a public demonstration of his faith with a view to allaying suspicions of skepticism and confuting the allegations of unorthodoxy (including possible sympathy to Zoroastrianism) levelled at him by a hostile clergy. He was then invited by the new Sultan Sanjar to Marv, possibly to work as a court astrologer. He was later allowed to return to Nishapur owing to his declining health. Upon his return, he seems to have lived the life of a recluse.
Omar Khayyam died at the age of 83 in his hometown of Nishapur on 4 December, 1131, and he is buried in what is now the Mausoleum of Omar Khayyam. One of his disciples Nizami Aruzi relates the story that some time during 1112–3 Khayyam was in Balkh in the company of Al-Isfizari (one of the scientists who had collaborated with him on the Jalali calendar) when he made a prophecy that "my tomb shall be in a spot where the north wind may scatter roses over it". Four years after his death, Aruzi located his tomb in a cemetery in a then large and well-known quarter of Nishapur on the road to Marv. As it had been foreseen by Khayyam, Aruzi found the tomb situated at the foot of a garden-wall over which pear trees and peach trees had thrust their heads and dropped their flowers so that his tomb stone was hidden beneath them.
Omar Khayyam