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.