By Omar Brouksy

RABAT, Jul 31, 2011 (AFP) - Morocco's King Mohammed VI may be pressing hard for better relations with neighbouring Algeria, but the unresolved Western Sahara question stands in the way of any real progress, analysts say.

Morocco closed the border following a 1994 Islamist militant attack in Marrakesh, which it blamed on Algeria's secret service.

The border region remains tense: only last week a Moroccan border guard was killed during a clash with gunmen trying to enter from Algeria.

The king had already called for better relations between the two countries on July 5, when Algeria celebrated the anniversary of its independence from France.

But his speech on Saturday proposed a concrete measure to add to the good intentions: the reopening of their 500-kilometre (310-mile) border.

Already in recent months ministers from both countries have crossed the border in both directions for talks with their counterparts.

In April, Algeria's Agriculture Minister Rachid Benaissa suggested in comments to AFP that it was only a matter of time: the border, he said, would open "sooner or later".

And such a move would certainly make economic sense. According to official figures from Morocco, only one percent of its exports go to Algeria, which accounts for only two percent of its imports.

The surge of pro-democracy activism in the region has also concentrated minds, say observers.

"The Arab Spring has raised fears on one side and the other, and pushed the leaders of the two countries to redouble calls for better ties and economic cooperation," said Maati Monjib of Rabat's Institute of African Studies.

Political specialist Khadija Mohsen Finan, who teachers at Paris VIII university, agrees.

The nationalist ideology promoted by the leadership of both countries is struggling to adapt to the challenge of the rejuvenated, re-energised grass-roots protest movements, she argued.

"The Libyan and Tunisian examples, two countries which are part of the Arab Maghreb Union (with Mauritania, Morocco and Algeria) are there," she added.

The uprising in Tunisia, which sparked the Arab Spring, drove president Zine El Abidine Ben Ali into exile in mid-January after just under a month of protests.

Libyan rebels are engaged in a bitter armed conflict with longtime leader Moamer Kadhafi, who is hanging on to power despite diplomatic isolation and a NATO-led air campaign against his forces.

But the scars from old conflicts between Algeria and Morocco have yet to heal properly -- and the most toxic issue remains that of the Western Sahara.

Morocco's 1975 annexation of the territory, a former Spanish colony, sparked a war between its forces and Algerian-backed Polisario guerrillas.

The two sides agreed to a ceasefire in 1991 but UN-sponsored talks on Western Sahara's future have since made no headway.

"It's clear that the Western Sahara affair hangs over on relations between the two neighbours, even the narrow nationalist schema that gave it more weight, is increasingly running out of steam," Finan said.

Moroccan political analyst Mohamed Darif argues that many people here believe Algeria could help solve the Western Sahara conflict -- but chooses not to do so in order to keep Morocco tied up there.

Historian Monjib put it this way: "It's like two crocodiles in the same creek."

Each country is fighting it out to be the dominant force in the region, he argued.

This regional rivalry dates back even further than the Western Sahara dispute: as early as 1963 the two regional rivals clashed several times in disputes over their common border before a ceasefire the following year.

The conflict left its mark on both countries, said Monjib, dispelling the euphoria that followed independence from France.

ob/jj/gba

Copyright AFP 2011.