The term Kerala was first epigraphically recorded as Cheras (Keralaputra) in a 3rd-century BCE rock inscription by the Mauryan emperor Ashoka of Magadha. It was mentioned as one of four independent kingdoms in southern India during Ashoka's time, the others being the Cholas, Pandyas and Satyaputras. The Cheras transformed Kerala into an international trade centre by establishing trade relations across the Arabian Sea with all major Mediterranean and Red Sea ports as well those of Eastern Africa and the Far East. The dominion of Cheras was located in one of the key routes of the ancient Indian Ocean trade. The early Cheras collapsed after repeated attacks from the neighboring Cholas and Rashtrakutas. In the 8th century, Adi Shankara was born in Kalady in central Kerala. He travelled extensively across the Indian subcontinent founding institutions of the widely influential philosophy of Advaita Vedanta. The Cheras regained control over Kerala in the 9th century until the kingdom was dissolved in the 12th century, after which small autonomous chiefdoms, most notably the Kingdom of Kozhikode, arose. The ports of Kozhikode and Kochi acted as major gateways to the western coast of medieval South India for several foreign entities. These entities included the Chinese, the Arabs, the Persians, various groups from Eastern Africa, various kingdoms from Southeast Asia including the Malacca Sultanate, and later on, the Europeans. In the 14th century, the Kerala school of astronomy and mathematics was founded by Madhava of Sangamagrama in Tirur. Some of the contributions of the school included the discovery of the infinite series and the foundations of calculus. In 1498, with the help of Gujarati merchants, Portuguese traveler Vasco Da Gama established a sea route to Kozhikode by sailing around the Cape of Good Hope, located in the southernmost region of Africa. His navy raised Portuguese forts and even minor settlements, which marked the beginning of European influences in India. European trading interests of the Dutch, French and the British took center stage in Kerala. In 1741, the Dutch were defeated by Travancore king Marthanda Varma. After this humiliating defeat, Dutch military commanders were taken hostage by Marthanda Varma, and they were forced to train the Travancore military with modern European weaponry. This resulted in Travancore being able to defend itself from further European aggression. By the late 18th century, most of the influence in Kerala came from the British. The British crown gained control over Northern