2500 years before classical Greece, around 3000 BC, a variation of Plato’s take on the gigantomachia is described in the battle between Horus and Seth as recorded in the Egyptian ‘coffin texts’:
The earth is hacked up after the two companions [i.e., Horus and Seth] have battled
after their feet have dug up the divine pond in Heliopolis.
Thoth comes, equipped with his rank,
after Atum has distinguished him with (the requirements of) power
and the two Great Ones (ie, the Enneads) [= councils of the gods] are satisfied with him.
The battle is over; strife is finished,
the flame that emerged is put out.
Censed (=calmed?) is the reddening (= wrath) before the tribunal of the god
so that it is seated to speak justice before Geb.
(Jan Assmann, Death and Salvation in Ancient Egypt, 283)