The remains of a German-American who invented the first submarine able to dive and resurface by itself have been exhumed in Panama.

Julius Kroehl’s remains were dug up from a cemetery with help from the US Embassy.

They are to be reburied alongside US war veterans near the Panama Canal.

Panama Submarine Inventor
People gather under a tent as they exhume the body of Julius H. Kroehl (Arnulfo Franco/AP)

The embassy said authorities will also seek to confirm the identity of the remains and establish a cause of death.

Kroehl built his submarine from parts brought from New York to search for pearls off Panama’s Pacific coast during the 19th century.

Records say he died at age 47 of malaria, but some suspect he was killed by decompression sickness, also known as the bends.

Kroehl was buried in 1867, and his grave was only rediscovered in 2005.