The Ming policy towards the Islamic religion was tolerant, while their racial policy towards ethnic minorities was of integration through forced marriage. Muslims were allowed to practice Islam, but if they were members of other ethnic groups they were required by law to intermarry, so Hui had to marry Han since they were different ethnic groups, with the Han often converting to Islam.