In the 11th century Seljuk Empire, Persian poet and mathematician Omar Khayyam's lover marries the Shah but the Shah, whose life is threatened by a sect of assassins, appoints Omar royal advisor.