Baroda State was a village present-day Gujarat, ruled by the Gaekwad dynasty of the Maratha Confederacy from its formation in 1721 until 1949 when it acceded to the newly formed Union of India. With the city of Baroda (Vadodara) as its capital, during the British Raj its relations with the British were managed by the Baroda Residency. At the time of Indian independence, only five rulers—the Nizam of Hyderabad, the Maharaja of Mysore, the Maharaja of Jammu and Kashmir state, the Maharaja Gaekwad of Baroda and the Maharaja Scindia of Gwalior—were entitled to a 21-gun salute. Baroda formally acceded to the Union of India, on 1 May 1949, prior to which an interim government was formed in the state. In late 18th century, the Baroda state established a Naval set up at Bilimora, a port about 40 miles south of Surat, known as Bunder Bilimora Suba Armor. Here a fleet of 50 vessels was stationed, which included mostly sails, cargo vessels for trading and military vessels to secure the sea from Portuguese, Dutch and French.