The Islamization of Iran occurred as a result of the Islamic conquest of Persia. It was a long process by which Islam, though long rejected, was gradually accepted by the majority of the population. On the other hand, Iranians have maintained certain pre-Islamic traditions, including language and culture, and adapted them with Islamic codes.