The Holy Prophet (SA) settled in Madinah. Gradually, a great number of the Muslims of Makkah, who were under the torture by the unbelievers, relinquished their homes and belongings and migrated to Madinah. Ansar also kept their promise and received them wholeheartedly.
The Holy Prophet (SA) constructed Masjid al-Nabi at Madinah. Other mosques were also built. Missionaries of Islam were sent to the outskirts and treaties were signed with Jewish tribes of Madinah and its suburbs and also with some Arab tribes. Thus Islam began to flourish with its enormous luminosity.
In the 6th year of the Hijrah, the Holy Prophet (SA) sent letters to the rulers and kings such as the King of Iran, Qaysar (Caesar) of Rome, Khedive of Egypt, and Al-Najashi (Negus) of Ethiopia and invited them to embrace Islam.
After some time, the unbelievers of Makkah breached the treaty and, as a result of this, the Holy Prophet (SA) decided to conquer Makkah. In the 8th year of the Hijrah, the Holy Prophet (SA) rushed to Makkah with ten thousand soldiers and conquered Makkah without any fighting and bloodshed. He also toppled and broke many idols placed in Ka'bah. People of Makkah accepted Islam. The Holy Prophet (SA) summoned all the leaders of Makkah, who had in the last 20 years shown their animosity and behaved inhumanely with him and his followers, and pardoned them all with utmost magnanimity and without showing the slightest harshness and moroseness.