The tensions between Morocco and Algeria on the issue of Western Sahara make gas shipments to a very tricky question. In reason of Spain's support for the moroccon position, Algeria has stopped every gas supply to Spain through the Maghred-Europe Gas Pipeline (MEG) and interdicted all shipments to Morocco from Spain of algerian gas, source Le Monde:
Spain began, for the very first time, to transport gas to Morocco through the Maghred-Europe Gas Pipeline (MEG), assuring that it was not Algerian gas, while Algeria does not supply plus the GME to Spain since the end of October 2021 against the backdrop of the diplomatic crisis.
“On the basis of commercial relations and good neighborliness, yesterday [Tuesday] the first shipment by the Maghreb gas pipeline of LNG [liquefied natural gas] previously acquired by Morocco on international markets and landed in a regasification plant took place. Spain,” sources from the Spanish Ministry for Ecological Transition told AFP.
Spain had announced in February that it would re-export gas to Morocco via the GME, which Algeria no longer supplies to Spain through Moroccan territory since the end of October 2021 due to a diplomatic crisis around of Western Sahara. “A certification process guarantees that this gas [routed from Spain to Morocco] is not of Algerian origin,” the same source told AFP.
Algiers had threatened in April to break its gas supply contract with Spain if Madrid were to transport Algerian gas "to a third destination", an implicit reference to Morocco.