The history of Amun as the patron god of Thebes begins in the 20th century BC, with the construction of the Precinct of Amun-Re at Karnak under Senusret I.
Major construction work in the Precinct of Amun-Re took place during the 18th dynasty when Thebes became the capital of the unified ancient Egypt.