The suspects, aged 30 and 34, were active in planning and preparing the execution of terrorist projects in Morocco, according to the statement.
Investigations showed the suspects were defending IS extremist ideology through electronic applications to serve the agenda of this terrorist organization.
Several electronic devices, mobile phones and knives were seized.
The suspects will be brought to justice after the investigation by the public prosecutor.
More about: #Morocco