The first purpose-built mosques belonged to Ahmadi Muslims and was constructed in 1967.[15] In 1973, the Danish government stopped free migration to the country. Rules were laxed in 1974 so that people with family in Denmark, people marrying someone in Denmark, or people seeking asylum could come to the country.[16] In the 1980s, a second wave of Muslims immigrated to Denmark, mainly from Iran, the Middle East, and Africa.