The tale begins at Kelaniya, near today’s Colombo. According to legend, King Kelanitissa had an innocent monk put to death, and the gods answered by sending the sea flooding over the land. To calm it, his daughter was placed in a decorated boat marked as a king’s daughter and pushed out onto the waves. The water fell back. The boat drifted down the coast to Ruhuna, where, in the version told in the south, it came ashore at Kirinda and was spotted by fishermen, or by birds in another telling. King Kavantissa married her, and she became Queen Viharamahadevi, mother of Dutugemunu, one of the island’s great heroes. A small temple on the rocks at Kirinda marks the landing. The east coast tells it differently and places the landing near Pottuvil, so two shores claim the same princess.
Told here as legend, not as established fact. Sources: Viharamahadevi – Wikipedia (CC BY-SA 4.0), Magul Maha Viharaya – Wikipedia (CC BY-SA 4.0).