A Belgian man who has links to Islamic State and had a "direct relationship" to the Paris attackers has been arrested in Morocco, according to the country's interior ministry.

The man, who is of Moroccan descent, had spent time in Syria getting military training and building relationships with IS field commanders, "including the mastermind" of the Paris attacks, and others who threatened attacks in France and Belgium, the ministry said in a statement.

The statement identified the suspect only by the initials J.A., and did not explain his suspected relationship to the Paris attackers.

Several of the Islamic extremists who targeted a Paris rock concert, stadium and cafes on November 13 last year had Moroccan origins and links to Belgium. The attacks killed 130 people.

The ministry said the man was arrested in the town of Mohammedia near Casablanca after travelling through Turkey, Germany, the Netherlands and Belgium. It said the suspect is under investigation.

At least one of the Paris attackers remains at large.