Original: Mahmud turned the former provincial city of Ghazni (now in Afghanistan) into the wealthy capital of an extensive empire which extended from Afghanistan into most of Iran as well as Pakistan and regions of North-West India.
Simplified: Mahmud turned the former provincial city of Ghazni into the wealthy capital of an extensive empire which included modern-day Afghanistan, most of Iran as well as regions of north-west India including modern-day Pakistan.