The author of the stage play on which the film is based, Imtiaz Ali Taj, believed that the legend had no historical base, but historians have suggested that Anarkali may have been a painter, a dancer, or a courtesan, or one of Akbar's wives and the mother of Salim's half-brother Prince Daniyal.