Answer
Nationalism ignited Ferdowsi's passion to write Shahnameh, an epic masterpiece that celebrates Persian history and culture. Drawing inspiration from the rich tapestry of Persian folklore, mythology, and history, Ferdowsi embarked on this monumental task to preserve and showcase the glorious heritage of his homeland.