Rahim Yar Khan ( رحیم یار خان) is a city in Punjab province of Pakistan. It is the 17th largest city of Pakistan by population. It is the capital of Rahim Yar Khan District and Rahim Yar Khan Tehsil. The administration of the city is subdivided into nine Union Councils. In 1881, Nawab of Bahawalpur gave this city its current name by naming it after his first-born son and crown prince Rahim Yar Khan.