The modern Arabic name of Edfu is derived from the ancient Egyptian name Djeba, or Etbo in Coptic. Djeba meant "Retribution Town", since the enemies of the god were brought to justice therein. The site of ancient Djeba was the traditional location of the mythological battle between the gods of Horus and Set, and its sandstone Ptolemaic temple, dedicated to Horus, is the most complete and best preserved of all the temples of Egypt. It was built on the site of a New Kingdom temple, which was oriented east to west, the Ptolemaic structure follows instead a north-south axis. In Graeco-Roman times Edfu was called Apollinopolis Magna, the Egyptian god Horus by then being identified with the Greek god Apollo.
Edfu was the capital of the second nome of Upper Egypt, an important regional center from the Old Kingdom, partly due to the large area of fertile land belonging to the town, partly to the fact that Edfu was situated near the frontier between Egypt and Nubia, though not as close as was edfu. Edfu was probably a starting point for desert routes leading to the Kharga Oasis in the west, and to the mines of the Eastern Desert and the Red Sea coast in the east..
A large hypostyle hall with eighteen columns was added at the southern end of the temple, and a forecourt and pylon gateway were added south of that. Doors were hung on the pylon gateway in 57 BCE, marking the final completion. Today, Edfu is the best preserved temple in Egypt.