Hoi An was historically the seat of the mighty Champa Kingdom, Lin-yi founded the kingdom in the 2nd century and it existed all the way up to the 17th century when it fell to the Viet people. Hoi An soon rose to prominence as one of Southeast Asia's most significant seaports and its largest harbour. From this point on, the Champa took control of the lucrative spice trade, which greatly increased the city's riches, making Hoi An, a significant station along the silk road, quickly rising to the top of the spice and silk trade, expanding its influence all the way to Baghdad. Once the city fell to the Viet it continued to be settled by the Japanese, Chinese, Dutch, and Indians over the following centuries until it was back into Viet hands.