A pig's escape was foiled by his love of Doritos

It doesn't matter if you're eating cool ranch or nacho cheese, Doritos are always delicious—even pigs agree! 

On Saturday, a pig went on the loose in San Bernardino, California, but was ultimately lured back to its home with the aid of Doritos and some quick thinking police officers.

According to the San Bernardino County Sheriff’s Department Instagram, they received a phone call saying that a pig "the size of a mini horse" was wandering around. Deputy Officers Ponce and Berg responded to where they believed the pig was "based on previous calls."

"They lured him [the pig] back home with Doritos one of our deputies had in her lunch bag,” the Instagram caption said. “They made a trail and he followed.”

The deputy officers eventually brought the chip-loving pig back home and made sure his gate was secured. 

"It was fun!” said Deputy Ponce. We're sure the pig enjoyed his time eating Doritos as well.

WATCH: 14 wonderfully strange names for groups of animals

Https%3a%2f%2fblueprint api production.s3.amazonaws.com%2fuploads%2fvideo uploaders%2fdistribution thumb%2fimage%2f86474%2f50ed1d74 9e2a 4287 bddf eb9f746c7fa0
Https%3a%2f%2fblueprint api production.s3.amazonaws.com%2fuploads%2fvideo uploaders%2fdistribution thumb%2fimage%2f86474%2f50ed1d74 9e2a 4287 bddf eb9f746c7fa0