The basics first, and an honest limit stated up front. What follows traces this pattern across Mesopotamia, Egypt, China, West Africa, and 20th-century America -- but the dating gets uneven for a specific, structural reason, not because some cultures' hero traditions are actually younger. Mesopotamia, Egypt, and China had early writing systems that happened to fix a myth in a form we can date directly. Oral-tradition cultures could have had equally ancient hero epics that we simply can't date the same way, because nothing was written down until centuries or millennia later. The gap in the record is a gap in writing technology, not necessarily a gap in when these stories began.
Gilgamesh (Mesopotamia, c. 2100-1800 BCE): the answer to death
The oldest written epic in the world, predating Homer by roughly 1,500 years. Gilgamesh loses his closest friend, Enkidu, and becomes consumed with cheating death -- ultimately settling for legacy, being remembered, instead of literal immortality. This wasn't abstract philosophy: in the Near East, a king's claim to rule depended on being remembered and tied to a divine lineage, so the epic did real political work, legitimizing power through the promise that a name could outlive a body.
[1]
Osiris and Horus (Egypt, in basic form by the 24th century BCE): the answer to illegitimate power
Osiris, a primeval king, is murdered by his brother Set, who seizes the throne. Osiris's son Horus fights to reclaim it and restore ma'at -- cosmic and social order -- ending Set's illegitimate reign. Every Egyptian pharaoh was understood as the living embodiment of Horus, the claim renewed at every succession.
[2] A civilization anxious about the legitimacy of whoever held power produced a myth that answered exactly that anxiety, on a fixed cycle, forever.
Yu the Great (China, mythologically dated c. 2200-1900 BCE): the answer to catastrophe
A flood so severe it lasted, in the legend, twenty years -- Yu's own father failed to control it and was removed; Yu succeeded through years of engineering work and earned the "divine mandate" to found the Xia Dynasty, China's first. This one has a real geological echo: researchers have found evidence of an actual massive Yellow River flood roughly 4,000 years ago that may be the event underneath the myth.
[3] Legitimacy here isn't inherited or restored -- it's earned directly, through competent crisis response, when the existing order had already failed once.
Sundiata (Mali, oral tradition from the 13th century CE): the answer to conquest and exile
Sundiata Keita, the real historical founder of the Mali Empire, became the subject of an epic preserved for centuries by griots -- Mandinka poet-historians whose job was carrying exactly this kind of story forward by memory, not by page. It wasn't fixed in writing until Arabic summaries appeared before 1890, and the first full line-by-line transcription didn't happen until 1967 -- more than 650 years after the events themselves. More than sixty published versions exist today, because a griot-carried epic stays fluid across generations by design, reinterpreted for whoever's listening, rather than locked to one fixed text the way a written epic is.
[4]
Then, three and a half millennia later, the same mechanism runs again, on schedule. Batman arrived in 1939, at the tail of the Great Depression, for a generation of kids who'd grown up in real economic misery and were now watching war gather in Europe -- built specifically as escapism into "a rich man who had no fear," a character whose torment was moral, not material, exactly inverted from what most readers were actually living through.[5] Iron Man arrived in 1962-63, and creator Stan Lee has said directly he built Tony Stark as a deliberate dare to himself: American youth was in the streets protesting the Vietnam War and the military-industrial complex specifically, and Lee built a hero who was the military-industrial complex personified, betting he could make readers love the character anyway.[6] Neither hero was invented in a vacuum. Both were built to answer a fear the culture was already living inside, at the exact moment it needed an answer.
Who's on the lever
No single author across four thousand years of this pattern -- unknown Mesopotamian scribes fixing Gilgamesh onto clay tablets, unnamed Egyptian priests codifying the Osiris cycle, whoever first told the Yu the Great flood story before it was ever written down, generations of named and unnamed griots carrying Sundiata forward by memory for 650 years, and then two specific, dated, credited individuals at the very end of the chain: Bob Kane and Bill Finger, credited with Batman only in 2015 after decades of Finger going unrecognized,
[7] and Stan Lee, who said outright that Iron Man was a conscious bet, not an accident. The mechanism is ancient and anonymous for most of its history. It only recently started leaving names.