Shabbetai Zvi was born in Smyrna in 1626, he showed early promise as a Talmudic scholar, and even more as a student and devotee of Kabbalah. More pronounced than his scholarship were his strange mystical speculations and religious ecstasies. He traveled to various cities, his strong personality and his alternately ascetic and self-indulgent behavior attracting and repelling rabbis and populace alike. He was expelled from Salonica by its rabbis for having staged a wedding service with himself as bridegroom and the Torah as bride. His erratic behavior continued. For long periods, he was a respected student and teacher of Kabbalah; at other times, he was given to messianic fantasies and bizarre acts. At one point, living in Jerusalem seeking "peace for his soul," he sought out a self-proclaimed "man of God," Nathan of Gaza, who declared Shabbetai Zvi to be the Messiah. Then Shabbetai Zvi began to act the part, as Gershom Scholem describes:
Not only did Shabbetai Zvi gain militant adherents in his native Turkey and in the Near East, but even in such cosmopolitan European cities as Venice, Livorno, and Amsterdam leading rabbis and sophisticated men of affairs were caught up in the messianic frenzy.
On September 15, 1666, Shabbetai Zvi, brought before the Sultan and given the choice of death or apostasy, prudently chose the latter, setting a turban on his head to signify his conversion to Islam, for which he was rewarded with the honorary title "Keeper of the Palace Gates" and a pension of 150 piasters a day.
The apostasy shocked the Jewish world. Leaders and followers alike refused to believe it. Many continued to anticipate a second coming, and faith in false messiahs continued through the eighteenth century. In the vast majority of believers, revulsion and remorse set in and there was an active endeavor to erase all evidence, even mention of the pseudo-Messiah. Pages were removed from communal registers, and documents were destroyed. Few copies of the books that celebrated Shabbetai Zvi survived, and those that did have become rarities much sought after by libraries and collectors.
Source: Abraham J. Karp, From the Ends of the Earth: Judaic Treasures of the Library of Congress, (DC: Library of Congress, 1991).