Passage: The Dhivehi language is of Indo-Iranian Sanskritic origin and therefore closely related to Sinhala, which points at a later influence from the north of the subcontinent. According to legends, the kingly dynasty that ruled the Maldives in the past has its origin there.

Question: What type of dynasty ruled in the Maldives?
kingly