A shark shows it is an apex predator.

Part of the ocean food chain was on full display for divers in Maldives when a large eel attempting to eat a smaller eel fought with a rockfish over the prey before falling victim to a larger predator—a shark.

Katy Schweigler was among divers checking out the corals and sea life at Kuda Rah Thila in the South Ari Atoll when the rare sighting unfolded.

The larger eel had a grip on the smaller eel when a rockfish came onto the scene, making two attempts to try to steal the smaller eel away from the larger eel.

An instant later the unexpected happened.

Schweigler captured footage of the shark coming out of nowhere and attacking the larger eel, allowing the smaller eel to escape and scaring the rockfish away.

The shark failed to swallow the larger eel on its first try, but succeeded on the second attempt right beneath a stunned diver. The shark then swam away as it devoured its prey.

“It all happened so quickly and unexpected,” Schweigler wrote on her Instagram post. “We processed what happened basically afterwards. But yeah, that feeling was pretty intense. The diver who had the shark below him when it came back the second time was literally frozen.

“It was insane. [The shark] came basically out of nowhere.”

One commenter called the sighting “predator vs. predator vs. predator.”

Schweiger wrote on the post that “Nature is sometimes brutal.”

Hard to argue.

PADI called the location of this incredible sighting the most famous dive site in the South Ari Atoll. It features a small reef covered with soft corals and is teeming with fish, "making every dive here an unforgettable experience."

Much like Schweigler’s dive.

This article originally appeared on For The Win: Shark comes out of nowhere in ‘predator vs. predator vs. predator’ vid

Reporting by David Strege, For The Win / For The Win

USA TODAY Network via Reuters Connect