From 650 to 1498 CE, Kamatapur (কামতাপুৰ) was a Hindu kingdom in eastern India. The medieval Kamatapur or Kamata kingdom flourished before the emergence of the Koch kingdom under the leadership of Viswa Singha. Kamatapur emerged as a sovereign state right from the middle of the seventh century and it continued through ups and downs till the year 1498 when its last capital at Gosaninari was devastated by the invading army of Alauddin Husain Shah of Bengal. The ancient kingdom of Kamatapur was located in the western Brahmaputra Valley. Most probably, Nalrajar Garh in Chilapata forest was the earliest capital of Kamatapur and subsequently through a long course of changes and developments the capital was shifted to Maynaguri and then to Prithu Rajar Garh, and before its final shifting to Gosanimari, an ancient river port-town since the seventh century, for some time, the capital was at Singijani. After the destruction of the kingdom of Kamatapur by Alauddin Husain Shah of Gaur, there emerged the Koch kingdom with its capital at Hingulavas in the Dooars.