Since after Prophet Mohammad's death, jobs and social-political activities were intermingled with non-religious (the Islamic word is "harram") issues, Sophists avoided any sort of social-political participation with the kings and also despised and reproached any kind of relation with them.The question raised in this research is; "despite reproach regarding having any relation with the kings, how was Sanayi's relation with this social class? "Considering the fact that Sanayi dedicated "Hadiqatol- Haqiqat" to Bahram Shah, and admired him, in addition to his courtiers and friends, it becomes quite clear that Sanayi had a good relation with the contemporary kings of his own time; which belonged to the Qaznavi dynasty. This point raises another question; he was a wise man who taught seeking non-materialism, chastity and faith and became the follower of many mystics who appeared after him, and always advised people to rely on God and trust him. So how could he possibly admire the kings? The simple answer given by some is that these poems were created when he was a young man; but then serious contemplation of his poetry makes us realize that as Sanayi became closely attached to Bahram Shah and his son, Mas' oud, he made an attempt to reform and educate them in a proper manner. He frankly and through direct advices and thoughtful allegories, any kind of suppression and encourages the king to be fair, forgiving, patient, do good things for the pheasants, behave in a humble manner, be sensible, wise, brave and thoughtful in religious issues, matters related to the nation; in other words in general he encourages the king to behave in the best possible manners. Sanayi tells the king to utilize his position for reforming the country; although poverty and the unsuitable political situation of the time influenced his requests and had a serious role in the matters he was accused of.