Seven people were arrested by Spanish police on Sunday for having links with Al-Qaida and ISIS in Spain.  The suspects were detained for supplying the arms under humanitarian aid.

Spanish police caught them during two investigations in the eastern cities of Valencia and Alicante and in Spain’s North African enclave of Ceuta.

“Five are Spanish nationals of Syrian, Jordanian and Moroccan origin, and two are Syrian and Moroccan nationals,” Police said, in a report by The Times of India.

Following an investigation in 2014, all were involved in providing logistical support to Islamic State also known as ISIL, ISIS or Daesh and the Al-Nusra Front, an Al-Qaeda affiliate in Syria. Around 12 investigations have been laid so far at the places and warehouses from where the suspects operated their illicit business.

As per the investigation, one of the militant is believed to have dispatched, electronic-transmission material, money, firearms and precursors for making explosives through a company, to Syria and Iraq.

All were dispatched in closed containers and believed to have been financed through a traditional system of ‘hawala’, in which it is hard to trace the bank transfers.

“The head of the cell directed a network of firms which enabled him to send the logistical material in sealed containers from Spanish ports to the terrorist groups operating in Syria and Iraq without raising suspicion.These regular supplies directly benefited the continuity and strengthening of terrorist structures in Syria and Iraq.” a spokesman from Spain’s Foreign Ministry said.

According to police officials, the chief of the group was continuously in communication and was asked to recruit women and then marry them, to bring to Syria. More than 500 women is estimated to have traveled to the West to join groups like ISIS.

The suspects have been taken to a private court in Madrid, where judge is expected to remand them in custody, according to a report by Daily Mail.