Neal Stephenson's
Baroque Cycle
A massive, sprawling affair where I learnt, and promptly forgot, more than I ever needed to know about coinage, promissory notes, the origins of capitalism and fiat, the grisly experiments of the Royal Society, the feud between Newton and Leibniz, Alchemy, non-conformism, tantric techniques involving prostrate massage, the great fire of London, condoms made of sheep intestines, the dawn of the Age of Enlightenment, symbolic logic, the bloodlines of the rulers of 17th century Europe, etc.,
but huge chunks of the text involve various journeys by sea, naval battles instigated by privateers, capture by Barbary pirates, a heist intercepting Spanish gold* from the ships conveying it from the New world, the Pirate Queen Kottakka and her predilections, etc.,
*maybe it was SOLOMON'S gold! In Alchemy that is important, especially when it involves the
Trial of the Pyx
not advertised as a "book of the sea" and there is much else in it's 3000+ pages, but it is a seafaring novel for what seems about a 1000 of those
not sure I can recommend it unless you are prepared for a massive "nerd out"
edit: a sort of prequel to
Cryptonomicon, a book which had its origins in a article about
undersea cabling for data transfer