The first writer to advocate a lectin-free diet was Peter J. DAdamo, a naturopathic physician best known for promoting the Blood type diet. He argued that lectins may damage a persons blood type by interfering with digestion, food metabolism, hormones, insulin production—and so should be avoided. D'Adamo provided no scientific evidence nor published data for his claims, and his diet has been criticized for making inaccurate statements about biochemistry.
Steven Gundry proposed a lectin-free diet in his book The Plant Paradox (2017). It excludes a large range of commonplace foods including whole grains, legumes, and most fruit, as well as the nightshade vegetables: tomatoes, potatoes, eggplant, bell peppers, and chili peppers. Gundry's claims about lectins are considered pseudoscience. His book cites studies that have nothing to do with lectins, and some that show—contrary to his own recommendations—that avoiding the whole grains  wheat, barley, and rye will allow increase of harmful bacteria while diminishing helpful bacteria.