Belgium has passed a counter terrorism law that is drawing condemnation from civil rights groups who say it unfairly targets immigrants and minorities for deportation without any legal recourse, the New York Times has reported.

The law gives the government the power to deport legal residents from Belgium on the suspicion of terrorist activities without any crime actually being committed. The wide net cast by the law has angered immigrant and civil rights groups, who argue it will be used to discriminate and deport immigrants and refugees simply because of their ethnicity.

Belgium has been reeling from a number of terrorist plots that have originated within the immigrant communities inside the country. The planning cell for the November 2015 Paris attacks were based inside Belgium, and the Brussels bombings only a few months later highlighted the deteriorating security situation in the country.

Belgium also holds the dubious honor of contributing the greatest share of foreign fighters traveling to Syria and Iraq to fight for ISIS in western Europe.