Bhavnagar was founded in 1724 by Bhavsinhji Gohil (1703–1764). It was the capital of Bhavnagar State , which was a princely state before it was merged into the Indian Union in 1948. It is now the administrative headquarters of the Bhavnagar district .