Chile had a submarine in 1917

Rucumilla was an H-class submarine of the Chilean Navy. The vessel was originally ordered by the United Kingdom's Royal Navy as HMS H17, but was handed over to Chile in 1917 as H3.