I disregard earlier inventions, such as that of Alexander the Great, because those are not documented, and non-propelled vessels such as diving bells (or diving clocks). Diving bells are relatively easy to construct, and were in use long before submarines. They are not submarines. The first Turkish submarine was a Nordenfelt in 1886.