The compilation may have been prompted by concern over deteriorating national spirit. There were disastrous global climate changes of 535-536 and the Plague of Justinian to contend with and the Iranians would have found much-needed solace in the collected legends of their past.