Complex sentence: After Lieutenant Shaw, due to ill health, was relieved by Lieutenant Andrew Sterett, "Enterprise" sailed to the Mediterranean, raising Gibraltar on 26 June 1801, where she was to join other U.S. warships in the First Barbary War.
Split into simpler sentences: After Lieutenant Shaw, due to ill health, was relieved by Lieutenant Andrew Sterett, "Enterprise" sailed to the Mediterranean. Raising Gibraltar on 26 June 1801, where she was to join other U.S. warships in the First Barbary War.