A horse videotaped galloping on the loose on highways near JFK Airport on Sunday night was brought to safety by fast-acting Port Authority police, according to the agency and its lieutenants union.

Video posted on social media shows the animal running on an exit ramp for the airport, past motels and parking lots. Port Authority officials said officers who responded to a report about a runaway horse on the JFK Expressway around 6:30 p.m. determined the horse had traveled across airport property before running south on the Van Wyck Expressway.

Police “safely contained and captured the horse” at the entrance to JFK’s Terminal 1, officials said. The animal was uninjured and was returned to Curly’s Cowboy Center in South Jamaica, less than a mile from the airport, according to the Port Authority. Traffic impacts to the terminal had concluded by around 8 p.m., authorities said.

The Port Authority Police Lieutenant Benevolent Association union wrote in a post on Instagram that a lieutenant was able to stop the horse thanks to the lieutenant's “quick thinking and calm control.”

“Unexpected calls demand steady leadership,” the union wrote. “This is what leadership looks like in real time.”

This is a developing story and may be updated.