Spanish law does not directly criminalize homelessness or begging in public places. Municipal ordinances may, however, criminalize homelessness, such as in Madrid. Barcelona also operates an ordinance that forbids homelessness or other organized forms of begging or public nuisance.
- Begging: if begging in public is not in general illegal, the Spanish Criminal Code makes it offence to use minors to beg.
- Administrative repression: municipal authorities may create Nuisance ordinances, which are punished by fines or the removal of personal property. Nuisance ordinances may include dumpster diving, public camping and being in public without fulfilling minimum hygiene standards.