The 15-year-old boys were on their way home to the Frankfurt district of Schwanheim at about 10 pm on Thursday when they decided to take a shortcut and found themselves nose to snout with a pack of boars.
"It was dark. They couldn't see. But there were a lot of boars," Frankfurt police spokesman Karlheinz Wagner told The Local.
The boys told police they first tried to avoid startling the pigs by remaining calm but lost their nerve after the biggest boar - a porker with huge tusks - started 'snuffling vigourously'.
They fled into the forest, the pack of boars on their heels, then, cornered, scampered about eight metres up a tree - an unusual twist in an urban woodland where confrontations between boars and people are common.
The boars circling the tree, the boys yelled for help for more than an hour before calling police, Wagner said. They only descended after police arrived and the pigs disappeared back into the underbrush.
Police aren't sure why the boars were so intent on following the boys, Wagner said, but it's possible they had young hidden somewhere in the bushes.
"These wild boars are showing up because of the trashcans," Wagner said. "The boars are coming to human neighborhoods to get something to eat."