“I deeply regret my transgression and offer my heartfelt apologies,” the actor said in a statement.

Licensed to kill, but not to hike?

I deeply regret my transgression and offer my heartfelt apologies to all for trespassing in this sensitive area.

Pierce Brosnan

Pierce Brosnan.Karwai Tang/WireImage

Yellowstone and all our National Parks are to be cared for and preserved for all to enjoy."

He added the hashtag #StayOnThePath.

A representative for the actor declined to comment further.

Per a plea deal, a separate charge of violating closures and use limits was dropped.

Hot springs have injured or killed more people in Yellowstone than any other feature."

Brosnan has recently been shooting a Western titledUnholy Trinityat the Yellowstone Film Ranch in Montana.

Want more movie news?