Origin of foe
Foe reaches English through Middle English, Old English, Proto-West Germanic, Proto-Germanic, German, Proto-Indo-European and Irish. Foe today means “An enemy”.
Etymology of foe
From Middle English fo (“foe; hostile”), from earlier yfoh, yvo, ifa (“foe”), from Old English ġefāh (“enemy”), from fāh (“hostile”), from Proto-West Germanic *faih, from Proto-Germanic *faihaz (compare Old Frisian fāch (“punishable”), Middle High German gevēch (“feuder”)), from Proto-Indo-European *peyk/ḱ- (“to hate, be hostile”) (compare Middle Irish óech (“enemy, fiend”), Lithuanian pi̇̀ktas (“evil”)).
Etymology text from Wiktionary (CC BY-SA 4.0). Asterisked forms are reconstructed, not attested.