After the overthrow of the Afshar Empire led by Nadir Shah the prominent state official Panahali bey Djavanshir founded one of independent states of Azerbaijan - Karabakh. He was born in the Saridjaly village of Karabakh. Mirza Djamal, the vizier of Karabakh khanate wrote: "Late Nadir shah after occupying Karabakh, Ganja, Tiflis and Shirvan provinces, invited all the working people of cities and villages in his place and gave them job among his servants and paid them salary, they gained respect and ranks.
He also involved Panah ali khan best known as Panahali bey Sarydjaly Djavanshir, who distinguished himself in every action, was famed and unconquerable in any battle and brave in all the wars with Nadir Rum»s troops (the wars with Osmanly empire in 1730th are implied here -Y.M, K.S). Yet after the Mughan congress Nadir laid punishment on those Karabakhians who did not recognize his power and exiled Muslim population to Afghanistan and Khorasan.