The King Narai's Palace (Thai: พระนารายณ์ราชนิเวศน์; rtgs: Phra Narai Ratchaniwet) in Lopburi was built by King Narai the Great, the king who ruled Ayutthaya from 1656 to 1688. He ordered the palace built in 1666 in the same area as King Ramesuan's Palace. King Narai stayed here for about 8–9 months a year, except during the rainy season. He designated Lopburi as the second capital of the Ayutthaya Kingdom. The palace was a place for relaxation, hunting, administering the country's affairs, and welcoming official visitors. When the king died in 1688, Lopburi and the palace were abandoned.