A national epic is an epic poem or a literary work of epic scope which seeks or is believed to capture and express the essence or spirit of a particular nation; not necessarily a nation state, but at least an ethnic or linguistic group with aspirations to independence or . National epics frequently recount the origin of a nation, a part of its history, or a crucial event in the development of national identity such as other national symbols. In a broader sense, a national epic may simply be an epic in the national language which the people or government of that nation are particularly proud of. It is distinct from a pan-national epic which is taken as representative of a larger cultural or linguistic group than a nation or a nation-state.
In medieval times Homer's Iliad was taken to be based on historical facts, and the Trojan War came to be considered as seminal in the genealogies of European monarchies. Virgil's Aeneid was taken to be the Roman equivalent of the Iliad, starting from the Fall of Troy and leading up to the birth of the young Roman nation. According to the then prevailing conception of history, empires were born and died in organic succession and correspondences existed between the past and the present. Geoffrey of Monmouth's 12th century classically inspired Historia Regum Britanniae, for example, fulfilled this function for the British or Welsh. Just as kings longed to emulate great leaders of the past, Alexander or Caesar, it was a temptation for poets to become a new Homer or Virgil. In 16th century Portugal, Luis de Camões celebrated Portugal as a naval power in his Os Lusíadas while Pierre de Ronsard set out to write La Franciade, an epic meant to be the Gallic equivalent of Virgil's poem that also traced back France's ancestry to Trojan princes.