Lectins are a kind of protein that are mostly found in raw legumes, seeds and grains. While lectins can be harmful for some people, they are rendered inactive most of the time by cooking processes. Raw beans do contain lectins but proper cooking of Mexican refried beans eliminates the harmful elements almost entirely.