Answer
Shahnameh, a literary masterpiece by Ferdowsi, was primarily composed to safeguard and celebrate the rich cultural heritage of Persia. This epic work aimed to immortalize the glorious history, myths, and legends of the Persian civilization, ensuring their preservation for future generations. Ferdowsi's magnum opus stands as a testament to his deep love for his homeland and his unwavering commitment to preserving its cultural identity.