The Temple was an essential part of worshipping God for the children of Israel in the Bible. Prior to the Temple, they made sacrifices and offerings in the Tabernacle that God showed Moses how to make and assemble in the wilderness. As with the Tabernacle, the Temple had an inner shrine called the Holy of Holies in which only the high priest can enter bearing the blood of a clean animal without blemish to atone for the people's sins as well as for his own—a yearly occurrence that would point the way to Jesus Christ making the perfect atonement for all sins with His own blood shed on the cross.
When the Ark of the Covenant was brought to Jerusalem, King David wanted to make a permanent house for God to dwell in. God told David that his son Solomon would be the one to build the house for Him. After David's death, King Solomon had the first Temple built in Jerusalem, and the glory of God came in and filled the house. God promised His people that as long as they were obedient and faithful unto Him, He would remain dwelling in the Temple forever. Over time, though, the people of Israel departed from God and served various idols. The corruption got to the point where God's presence left the Temple, and by the eleventh year of King Zedekiah's reign in Jerusalem the city was destroyed, most of the people were killed or deported by the Babylonians, and the Temple was destroyed.
Around the time of King Cyrus of Persia, a group of Jews returned from exile to begin building the next Temple by the commandment of the king, but their work was halted by reports to King Artaxerxes about the Jewish people. However, stirred on by the prophets Haggai and Zechariah, they resumed work on the Temple until it was finished. This Temple remained standing into the days of Jesus Christ's first coming, when King Herod the Great had it renovated. As Jesus had prophesied, this Temple would be destroyed within that generation by the Roman Empire troops under general Titus in 70 A.D. (Prior to this, at the time of Jesus' death on the cross, the curtain that separated the Holy Place from the Holy of Holies was torn in two from top to bottom, indicating that Jesus' sacrifice for all people's sins was sufficient and that access to God was now available to all people through Jesus.) At this present day in Israel there are plans for a third Temple to be built, but whether those plans will come to fruition is as yet uncertain.
There were two Temples that were built for the Jews to worship God in in Jerusalem in the Left Behind books. The first Temple was built and finished within 18 months after the start of the Tribulation in the book "Tribulation Force". Eli and Moishe denounced this Temple as a "Temple of rejection" as the Jews had built it apart from the true Messiah, Jesus Christ. As they had prophesied, it was desecrated by Nicolae Carpathia after his resurrection when he sacrificed a pig in the Holy of Holies and splashed its blood upon the altar in "Desecration". This Temple was destroyed by God at the beginning of the Millennial Kingdom in "Kingdom Come" and replaced by a Temple that resembles its descriptions in the book of Ezekiel. That Temple was later destroyed at the end of the Millennium along with the old earth, when the "new heavens and new earth" came into being and the New Jerusalem came down from heaven, where the Lord Almighty and the Lamb are its temple.