Hyderabad is a city and the capital of Hyderabad Division in the Sindh province of Pakistan. It is the second-largest city in Sindh, and the 7th largest in Pakistan. Founded in 1768 by Mian Ghulam Shah Kalhoro of the Kalhora Dynasty, Hyderabad served as a provincial capital until the British transferred the capital to Bombay Presidency in 1840. It is about 150 kilometres inland of Karachi, the largest city of Pakistan, to which it is connected by a direct railway and M-9 motorway.