At the peak of their reign, the Zamorins of Kozhikode ruled over a region from Kollam (Quilon) in the south to Panthalayini Kollam (Koyilandy) in the north.[37][2] They were the most powerful rulers on Malabar Coast and Kozhikode was the largest city of Kerala until the Portuguese era. The Zamorin of Calicut, who was originally the ruler of Eranad based at Nediyiruppu, developed the port at Kozhikode and changed his headquarters to there for maritime trade. Ibn Battuta (1342–1347), who visited the city of Kozhikode six times, gives the earliest glimpses of life in the city.