Perhaps he dreamed of becoming a sausage dog.
Instead, this Shar-Pei mix got into a tight fix after becoming wedged in a six-inch space between two walls.
The saga of the dog - appropriately nicknamed Wally by his rescuers - began after a complaint was lodged about a barking noise coming from a crawl space near two properties in Riverside County, California.
Animal Services Department spokesman John Welsh said Wally was found wedged between two six-foot-high concrete walls in Cathedral City - dehydrated and weak, but happy.
Scroll down for video
A Shar-Pei mix dog sandwiched between two walls has been nicknamed 'Wally' by animal services
Wally is estimated to be about four years old.
Mr Welsh said the animal may have been chasing a cat or a rabbit when he got stuck.
Workers spent about 40 minutes on Friday knocking down one of the walls before pulling the male dog to safety.
Officers guided the dog out with a catch pole for the safety of the officers - and bystanders.
It is believed the dog, which had no identifying tags or collar, got stuck after chasing a rabbit into the too-small space. Rescuers spent 40 minutes knocking down a wall to free him
Wally was dehydrated but OK, and wolfed down a bean burrito fed to him by an officer
A worker then fed the dog a bean and cheese burrito, which he gobbled up.
Wally was taken to the the Coachella Valley Animal Campus in Thousand Palms to be treated for dehydration.
If his owner doesn't come forward, he will be put up for adoption.