Complex sentence: In doing so he lost sight of the convoy and in sailing to rejoin them when he came across a French frigate on 5 July, which was in the process of capturing an English merchant.
Split into simpler sentences: In doing so he lost sight of the convoy. As he sailed to rejoin the convoy, on 5 July he came across a French frigate that was in the process of capturing an English merchant.