Emergence of the Kingdom of Cochin
Before the 12th century, Cochin was part of the Vembalinadu region under the rule of the Kulasekhara Perumals of Mahodayapuram. In 1102, with the fall of the Kulasekhara empire, the territory of Cochin fell into the hands of the Cochin royal family, Perumbadappu Swaroopam, who were closely related to the Perumals.
Internal strife and an attack from the Zamorins of Malabar forced the members of the Perumbadappu Swaroopam to shift their base out of Mahodayapuram in 1405. The royal family moved to Kochi paving the way for the emergence of the kingdom of Kochi.