Complex sentence: Raktabahu felt betrayed when he found an abandoned town and ordered his army to attack the sea instead, but the sea surged back, drowned the army and formed the present lagoon.
Split into simpler sentences: Raktabahu felt betrayed when he found an abandoned town and ordered his army to attack the sea instead. The sea receded, then surged back, drowned the army and formed the present lagoon.