Thebes, known to the ancient Egyptians as Waset, was an ancient Egyptian city located east of 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 mainly during the Middle Kingdom and the New Kingdom. 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 the city proper was situated; and the western bank, where a necropolis of large private and royal cemeteries and funerary complexes can be found.