The Royal Palace of Thanjavur was built durinr the reign of Nayak's sometime during mid 17th century. After the fall of Nayak's the place was ruled by Marathas. They further developed this palace and used it as their residence.
Read this post on myindiantravel.blogspot.com