Thebes, known to the ancient Egyptians as Waset, was an ancient Egyptian city located along the Nile about 800 kilometers south of the Mediterranean. Its ruins lie within the modern Egyptian city of Luxor. Thebes was the main city of the fourth Upper Egyptian nome and was the capital of Egypt for long periods during the Middle Kingdom and New Kingdom eras. It was close to Nubia and the Eastern Desert, with its valuable mineral resources and trade routes. It was a cult center and the most venerated city of ancient Egypt during its heyday. The site of Thebes includes areas on both the eastern bank of the Nile, where the temples of Karnak and Luxor stand and where the city proper was situated; and the western bank, where a necropolis of large private and royal cemeteries and funerary complexes can be found.