As part of the government's trade liberalization process, a widespread anti-smuggling campaign has sharply reduced the amount of goods illegally entering Morocco. A large amount of hashish illegally exits the country. In 2000 Morocco's imports were distributed among the following categories:
| Consumer goods | 8.1% |
| Food | 11.4% |
| Fuels | 17.5% |
| Industrial supplies | 36.2% |
| Machinery | 20.0% |
| Transportation | 6.8% |
The largest export receipts come from the garment sector (32% of total exports). Morocco exports a large amount of foodstuffs (21%), including shellfish (8.5%), fruit and nuts (3.1%), fish (2.7%), and vegetables (2.3%). Other exports include inorganic fertilizers (10%) and chemicals (6.8%). Morocco produces 31% of the world's crude fertilizers exports. Principal trading partners in 2000 (in millions of US dollars) were as follows:
| COUNTRY | EXPORTS | IMPORTS | BALANCE |
| France | 2,491 | 2,771 | -280 |
| Spain | 964 | 1,139 | -175 |
| United Kingdom | 713 | 712 | 1 |
| Italy | 530 | 546 | -16 |
| Germany | 369 | 563 | -194 |
| India | 311 | n.a. | n.a. |
| Japan | 284 | 195 | 89 |
| United States | 254 | 644 | -390 |
| Belgium | 210 | 184 | 26 |
| Saudi Arabia | 60 | 573 | -513 |