During the Mamalik era, the scientific movement in the city of Medina grew. Scholars, writers, and historians enrich the Arabic literature with monumental works, especially about the history of the city of Medina and the historical places in it. That era was the richest era of Medina. Before the collapse of the Mamalik dynasty, the government of the city of Medina was merged into the Makerintaha Makkah, then the power of Husainiyah was weakened, they were made representatives in running their government which followed their cousins who ruled the city of Makkah. On the other hand, read more here if you wish to learn Arabic online before you visit Medina or Mecca.
When the first Ottoman emperor named Salim came to power in Egypt, the city government of Maakah sent him a messenger who carried the key to the two holy lands, as a sign of their submission to the Ottoman empire. That was the beginning of the city of Hijjaz with its two holy cities entered into Ottoman rule.
The Ottoman empire paid great attention to the city of Medina and sent large funds. They renovated the fence and built a strong fort for military security. They also regulated the system of government and still made the demand for the city of Medina to join the Makkah government as before. Then gradually the city of Medina was given freedom. Military work was determined directly from the imperial capital, and the Sheikh of the Nabawi Mosque became the highest administrative figure.
The people who migrated to the city of Madinah increasingly. They come from various Islamic countries, both individuals and families. The Medina community became a heterogeneous society, a combination of European, Asian and African Islamic societies, especially in the last century of the Utsmaniyyah dynasty which ruled for more than 4 centuries. The city of Medina printed its entire community with religious and social characteristics. The bond of freedom extends between ethnic groups and countries to increase familiarity and harmony between communities. Several schools and libraries were built and represented by prominent figures and rich people.