Building began in the Middle Kingdom, around the twentieth century BC, and continued into the Ptolemaic period. The site was in continuous religious use for longer than the span between the Ptolemies and now.
Amun-Re rose with Thebes itself. As the city became the capital of the New Kingdom, its local god became the state god, and the wealth of an empire was spent here — Thutmose III's conquests, Seti I's and Ramesses II's building programmes, and the endowments of a priesthood that grew powerful enough to rival the crown.
The Great Hypostyle Hall was begun under Seti I and finished by Ramesses II in the thirteenth century BC. The ten pylons were added by different kings in different directions, which is why the complex grows along two axes rather than one.
The first pylon, the one you walk through at the entrance, was never finished. The mudbrick construction ramp is still piled against the inside face — the clearest surviving evidence anywhere of how Egyptians actually raised a wall of this size.
The temple was the destination of the annual Opet procession, when the images of the Theban gods travelled to Luxor Temple along the avenue of sphinxes and back. That avenue, nearly three kilometres of it, has been excavated along its whole length and reopened.