Rebuilding the Temple - Wikipedia
Based on the biblical account, after the return from Babylonian captivity arrangements were immediately made to reorganize the desolated Yehud Province after the demise of the Kingdom of Judah seventy years earlier. The body of pilgrims, forming a band of 42,360, having completed the long and dreary journey of some four months, from the banks of the Euphrates to Jerusalem, were animated in all their proceedings by a strong religious impulse, and therefore one of their first concerns was to restore their ancient house of worship by rebuilding their destroyed Temple and reinstituting the sacrificial rituals known as the korbanot.
On the invitation of Zerubbabel, the governor, who showed them a remarkable example of liberality by contributing personally 1,000 golden darics, besides other gifts, the people poured their gifts into the sacred treasury with great enthusiasm. First they erected and dedicated the altar of God on the exact spot where it had formerly stood, and they then cleared away the charred heaps of debris which occupied the site of the old temple; and in the second month of the second year (535 BCE), amid great public excitement and rejoicing, the foundations of the Second Temple were laid. A wide interest was felt in this great movement, although it was regarded with mixed feelings by the spectators.
The Samaritans made proposals for co-operation in the work. Zerubbabel and the elders, however, declined all such cooperation, feeling that the Jews must build the Temple without help. Immediately evil reports were spread regarding the Jews. According to Ezra 4:5, the Samaritans sought to "frustrate their purpose" and sent messengers to Ecbatana and Susa, with the result that the work was suspended.
Seven years later, Cyrus the Great, who allowed the Jews to return to their homeland and rebuild the Temple, died, and was succeeded by his son Cambyses. On his death, the "false Smerdis," an imposter, occupied the throne for some seven or eight months, and then Darius I of Persia became king (522 BCE). In the second year of this monarch the work of rebuilding the temple was resumed and carried forward to its completion, under the stimulus of the earnest counsels and admonitions of the prophets Haggai and Zechariah. It was ready for consecration in the spring of 516 BCE, more than twenty years after the return from captivity. The Temple was completed on the third day of the month Adar, in the sixth year of the reign of King Darius, amid great rejoicings on the part of all the people although it was evident that the Jews were no longer an independent people, but were subject to a foreign power. The Book of Haggai includes a prediction that the glory of the second temple would be greater than that of the first.
Read More about Rebuilding the Temple - Wikipedia