A raccoon ended up getting stuck inside a vending machine at a school in Florida.

Instead of being able to choose candy or chips, students at Pine Ridge High School in Deltona, Central Florida, saw that the furry creature had beaten them to it.

The raccoon appeared to be neatly wedged in between the baby back ribs chips and Rice Krispies Treats cereal bars.

A raccoon somehow managed to get caught insider a school snack vending machine

It was unclear how long it had been lounging amid the snacks but it had apparently made itself quite at home.

In another photo, the raccoon could be seen staring out from the chute where the food is dispensed, with a rather guilty look on its face.

'This gentleman was apprehended today while committing a burglary of a vending machine at Pine Ridge High School,' the agency said in a cheeky Facebook post that included two photos of the creature peering through the machine's window.

Police posted a picture of the bandit wedged in between the snacks

The school resource officer called in Deltona Animal Control who ended up wheeling the entire vending machine outside.

After opening up the front of the machine, the raccoon was allowed to escape unharmed.

'The raccoon went on his way, whatever his next chapter might hold,' the posting said. 'He's off to his next adventure.'

Animal Control officers wheeled the machine outside to release the critter