I’m currently reading the Aubrey-Maturin series, can’t recommend it enough. I also liked the Hornblower series set in the same era by C.S. Forester which is centred around quite a different character who plays the role of a naval officer. There’s a good TV adaptation of it too which I think is available on YouTube.