The image is fixed in a certain kind of speech: the immigrant here illegally, living large on benefits a citizen paid for. It is vivid, it is repeated constantly, and under federal law it is close to the opposite of true. The major federal safety-net programs are, by statute, closed to undocumented immigrants.
What the law actually says
Walk down the list. Undocumented immigrants are ineligible for the Supplemental Nutrition Assistance Program, the food stamps program; for non-emergency Medicaid; for Supplemental Security Income; and for Temporary Assistance for Needy Families, the program most people mean when they say "welfare." [1][2] They cannot collect Social Security or Medicare either, even though many pay into both through payroll taxes, on jobs whose benefits they will never draw. [2][3] The eligibility rules are not a matter of opinion or enforcement mood. They are written into the programs.
The narrow exceptions
Be precise about what is left, because precision is how you kill a myth without overstating the rebuttal. There are a few carve-outs, and they are the kind a decent country keeps: emergency Medicaid, which pays a hospital that stabilizes someone in a crisis; treatment in an emergency room, which by law cannot turn a dying person away; and WIC, the nutrition program for pregnant women, infants, and young children. [1][2] A person in mortal danger and a hungry infant are not the welfare kings of the story. They are the edges the law deliberately refused to let people fall off.
WHAT UNDOCUMENTED IMMIGRANTS CANNOT GET
- SNAP (food stamps), non-emergency Medicaid, SSI, TANF cash welfare [1][2]
- Social Security and Medicare benefits [2][3]
- Exceptions: emergency Medicaid, ER care, WIC [1][2]
Why the myth survives
The story persists because it does useful work: it explains a household's hard month by pointing at a neighbor instead of a policy. The facts point the other way. The people in the story are mostly paying into systems that are legally forbidden to pay them back. You can hold any view you like about immigration. You should not build it on a benefits check that, by law, was never written.