Their shepherd had ONE job.

Instead, the flock of more than 1,000 sheep took over the streets of Huesca, a city in northeastern Spain, early Tuesday.

According to European English-language news network The Local Spain, the ruminant rampage began after their minder fell asleep on the job. Officials said he apparently dozed off while guiding the herd to summer pastures in the Pyrenees mountains.

Local police were alerted to the horde of herbivores around 4:30 a.m. when a city resident called the equivalent of 911.

Police posted a video to Facebook of the sizable wooly throng fearlessly approaching squad cars. The sheep were rounded up and delivered back to the sleepy shepherd by 7 a.m.—before he even realized they were missing.

Perhaps the Welsh politician who feared that cannabis-munching sheep would go on a psychotic rampage in his town wasn’t so off-base after all.