it is common Knowledge that Joe Smith was also a Mason, and many of the Mormon rituals are based on masonic tradition.
The relationship between Mormonism and Freemasonry began early in the life of Mormon founder Joseph Smith, Jr., as his older brother and possibly his father were Freemasons while the family lived near Palmyra, New York. Nevertheless, in the late 1820s, the western New York region was swept with anti-Masonic fervor, and the Book of Mormon, a foundational religious book published by Smith in 1830, is generally considered to reflect that anti-Masonic sentiment by condemning what it portrays as oath-bound conspiratorial organizations.
By the 1840s, however, Smith and several prominent Mormons had become Freemasons and founded a lodge in Nauvoo, Illinois, in March 1842. Soon after joining Freemasonry, Smith introduced a new temple "Endowment" ceremony including a number of symbolic elements that were essentially identical with their analogues within Freemasonry. Smith remained a Freemason until his death; however, later Mormon leaders distanced themselves from Freemasonry. In modern times, The Church of Jesus Christ of Latter-day Saints (LDS Church), the predominant Mormon organization, holds no position for or against the compatibility of Masonry with LDS Church doctrine.