Shusha was founded in 1750-1752 ( according to other sources , 1756-1757 ) by Panah-Ali khan Javanshir ( r. 1748-1763 ) , the founder and the first ruler of the independent . The first capital of the Karabakh khanate was castle of Bayat , built in 1748 in the district of Kebirli .
Shusha was founded in 1750-1752 ( according to other sources , 1756 â `` 1757 ) by Panah-Ali khan Javanshir ( r. 1748-1763 ) , the founder and the first ruler of the independent Karabakh Khanate ( 1748 â `` 1822 ) , which comprised both Lowland and Highland Karabakh .