Hindu culture and religion arrived in the archipelago around the 2nd century AD, which later formed the basis of several Hindu-Buddhist kingdoms such as Kutai, Medang, and Majapahit. Around 130, a Sundanese kingdom named Salakanagara emerged in western Java. It was the first historically recorded Indianised kingdom in the archipelago, created by an Indian trader following marriage to a local Sundanese princess. The largest Hindu temple in Indonesia, Prambanan, was built during the Majapahit kingdom by the Sanjaya dynasty. The kingdom existed until the 16th century when Islamic empires began to develop, this period known as the Hindu-Indonesian period.