Complex sentence: On two occasions she almost ran aground; first while pursuing a French privateer, she ran into shallow water where large rocks were seen near the surface.
Split into simpler sentences: On two occasions she almost ran aground. While pursuing a French privateer she ran into shallow water where large rocks were seen near the surface.