What prompted the Quran to be written ?

Explain in a simple and veryshort way

The Quran was written during the 7th century in Arabia as a result of the revelations received by the Prophet Muhammad from God. Muhammad was chosen as the final messenger of God and the Quran was revealed to guide and instruct people in matters of faith, morality, and practical life.

The Quran was written in response to the revelation received by the Prophet Muhammad from the angel Gabriel. These revelations were seen as messages from God and were compiled into the Quran to preserve and spread the teachings of Islam.