In 1827, according to his own account, he was led by divine revelation to find the sacred texts written by the prophet Mormon, which he later translated and published as the Book of Mormon in 1830. He founded the Mormon Church in the same year and established a large community in Illinois, of which he became mayor. He was murdered by a mob while in prison awaiting trial for conspiracy.