To the rear of the temple are chapels built by Amenhotep III of the 18th Dynasty, and Alexander. Other parts of the temple were built by Tutankhamun and Ramesses II. During the Roman era, the temple and its surroundings were a legionary fortress and the home of the Roman government in the area. During the Roman period a chapel inside the Luxor Temple originally dedicated to the goddess Mut was transformed into a Tetrarchy cult chapel and later into a church.