In 1875, during the reign of Sultan Abdülaziz, the Ottoman Navy had 21 battleships and 173 other types of warships, ranking as the third largest navy in the world after the British and French navies.
The aforementioned submarines were an attempt to gain an edge over the Greek navy (which had only one Nordenfelt submarine, a smaller and older version).