Shergozikhan (1714-1726) was a smart, brave, entrepreneur, very skilled in military affairs. He especially encouraged all historians that the Russian army, led by the Russian king Petr I, had captured the Russian army led by Prince Bekovich-Cherkasski, who was sent to capture the golden sand in KHorezm.
In the summer of 1717, the khan against the army with 4,000 pedestrians, 100 horsemen, 6 balls, 200 camels, 300 horse-riding horsemen used military tactics without fighting. Khan's reporters say that Bekovich-Cherkassky is a convenient place to host a soldier. The deceived army officer gets the army. The Khiva deserted the Russian troops and sent Bekovich-Cherkasky a straw of scab to the Bukhara khan. The Sherghozyhan Minister, Gurlan, Shohabad, Bogholon, Hanoi, Uygur and Hazarab fortresses were united around their hometown. Khan brought more than 5,000 red-colored offspring during his campaign to Mashhad. Those slaves were used to build the madrasah named after Shergozikhan. Many historians have described Sher-uzikhon as the Khiva's khan and the righteous khan, the faithful and devoted person. For this reason, the han denied the knowledge of the scholars and enjoyed their conversation.
According to the stories of the elderly, after the conquest of Sherghozixon Mashhad (1715), 5,000 prisoners were brought to Khiva and started madrasa. The madrasah was built in 1719. He was nicknamed "Maskani Fazilon" by his contemporaries. In fact, these pupils studied and studied great people at home. One of them is Pahlavan Quli Ravnak, one of whom is the great poet of Turkmen Mahtumquli Firogi. Mahtumquli writes with gratitude at the end of his medresse:
The Makon was three years old,
I'm gone, nice smile, nice sheriff.
I went spring, winter and summer
I'm gone, nice smile, nice sheriff.
The poet regretted his willingness to live in Khiva in his poems. The power to influence Mahtumquli's poems is that he has conveyed the truth and justice in life from his heart to the hearts of others:
If someone does not come to this world,
If he dies after his death, he will not die.
Thank you, thank God,
Death is equal to sha gado ...
Mahtumquli wrote these poems before going to Madrasah in Khiva, reading at Idrisbobo madrassah in Kiziloyak village around Khalachi, at Kukeldash madrasah in Bukhara, and continuing his studies in Andijan in the Shergozikhan madrassah for three years, while at the time he was in forty old age. As Sadriddin Aini, a madrassa of his life who reads at the Bukhara madrassah, had been a lot of sophisticated people at the time.
Known Karakalpak poet Ajiniyaz was also educated in this place (1840-1844) for four years.
The madrasah was built in front of the Pahlavan Makhmud Tomb, with several stories about its construction, engraved on marble and mounted on a madrassa porch. Four of the marble quarries have survived until today. From the 32 figurative Persian poems on the marble inscriptions adjacent to the entrance to the Medrese entrance, we found that Madrassah in the world was built by Sherghozihan with his wisdom and fertility, and provided the foundations of the Madrassah (Sherabad, Hayrabad, Pirnovhast, Polvon bobo) we will find out how many wages, wheat, rice, and corn each year will be paid for, for example, teachers, teachers, imams, librarians, librarians, teachers, and more.
The poets praised the khan and wrote titles like "Hurshidi Dunya", "Sheri Duha" and said, "Everyone who resides in this address is, of course, a companion of the scientist, cosmic and mystery researcher." We also learn information about how to read, read, and discipline the student. Under this rule, if the student does not go to study for two months, he / she will be deprived of his / her salary if he / she does not work for a week. It was found out that the madrassah was built in 1132 AH in 1132 AH. Shergozikhan was killed by his servants, so the historians found his date of death as "Dod az gulomon", "Slaves dod", 1139 Hijri, 1726. Khan's grave was buried in his room at the madrasa of the day.
At present madrasah Mahtumquli and Ajiniyoz Korsiboy oglu are exhibitions.