The 48-year-old Romanian, who lives on the streets and in between shelters in Murcia, had climbed in after mistakenly thinking it contained clothing destined for recycling.
Police were called after passersby heard a man calling for help from inside a bin in the Vistabella neighbourhood.
He had managed to find his way in despite the container using a tilting door mechanism to stop people from raiding them, a practice that has reportedly increased during Spain’s prolonged economic crisis.
A local policeman said: “We just don’t know how he managed to climb in there.”
Officers at the scene were unable to free the man and had to wait for council workers to arrive and open the container.
He was freed after half an hour without injury.
Some 31% of Murcia are at risk of poverty, making it one of the poorest regions in the country.
Councils across Spain have begun locking their bins to prevent the surge of bin scavenging.
- Marbella shooting victim identified as high profile Costa del Sol businessman - 21 Jan, 2019 @ 18:30
- WARNING: Orange alerts for SNOW, wind and strong waves across Spain and Andalucia this week - 21 Jan, 2019 @ 14:59
- Expat appears in court after shooting and killing boy, 4, during hunt in Spain’s Andalucia - 21 Jan, 2019 @ 12:45
- Man shot to death inside his Bentley on Spain’s Costa del Sol in latest mafia hit - 21 Jan, 2019 @ 11:26
- Malaga law firm secures regulation from the Ministry of Justice after winning more than €1 million back from timeshare giants last year - 20 Jan, 2019 @ 18:22
- What do King Solomon, Andalucia’s Rio Tinto mines, NASA and Mars have in common? - 19 Jan, 2019 @ 13:44
- HAPPY RETURN: How British expats in Spain can plan for retirement back in Britain - 18 Jan, 2019 @ 17:44
- SCAM ALERT: Pensioners claim British conwoman tried to coax them from bus stop into ‘fake shuttle’ on Spain’s Costa del Sol - 18 Jan, 2019 @ 16:22
- WATCH: Terrifying moment HUGE spitting COBRA acosts workers at port in southern Spain - 18 Jan, 2019 @ 14:54
- WATCH: Vile video shows SEWAGE flowing onto popular beach in southern Spain - 18 Jan, 2019 @ 13:47