MADRID, Spain — Spanish police said they arrested seven people on Sunday with suspected links to al-Qaeda and the Islamic State groups and uncovered an operation to smuggle arms to jihadists under the guise of humanitarian aid.

The arrests were carried out in the eastern cities of Valencia and Alicante and in Spain’s North African enclave of Ceuta, the police said in a statement.

“Five are Spanish nationals of Syrian, Jordanian and Moroccan origin, and two are Syrian and Moroccan nationals,” it said.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

The arrests were made in the context of an investigation launched in 2014 into “foreign structures” providing logistical support for Islamic State — also called ISIL, ISIS or Daesh — and the al-Nusra Front, an al-Qaeda affiliate in Syria, police said.

One of those arrested was a man who dispatched “military material, money, electronic and transmission material, firearms and precursors for making explosives” to Syria and Iraq via a company, it said.

This was shipped out in closed containers under the guise of humanitarian aid, and financed by “hawala,” an informal system of payment based on trust that is far more difficult to trace than bank transfers.

The leader of the network was in “constant” contact with a member of the Islamic State, who repeatedly asked him to recruit women in order to marry them off to IS jihadists in Syria, the statement said.