The Temple Mount is at the rocky top of the ridge on which Jews built their Jerusalem Temple. King David lived down the hill in the City of David, a walled city below the top of the ridge. His son and successor, Solomon, expanded the city north, to the Temple Mount, where he built the first Jewish Temple.
Babylonian invaders destroyed it and the entire city about 400 years later, in 586 BC. They exiled the surviving Jews.
Persians conquered the Babylonians 50 years later and freed the Jews to go home. They rebuilt the Temple in 516 BC. So, they had lived without a Jerusalem worship center for 70 years.
Then, 70 years after they built the second Temple, Nehemiah, a Jewish winetaster for the Persian king, got permission to go to Jerusalem and repair the walls. He served there as governor for about 13 years.