Hasan – aga was a wise man who realized that supporting young people was the only worthy investment. He gave his property to the God but for people to use. When he became the ruler of the Priboj region he established the mesidzid – mosque without a minaret in 1758. After a while it was completely built and decorated in the whole. It was the most representative building in the town. The mosque has been burnt twice and then restored.
The last reconstruction was done in 1982.