During the 17th century, the valley was ruled by a famous tribal leader of the Swatis. His title was the Khan of Agror. His real name was Akund Saad-ud-din. He was a "mullah" or petty Muslim religious scholar, who obtained power over the local people of the Agror valley. In time, he established himself as the local 'Khan' or chieftain and controlled the whole valley. His capital was at Oghi town.