Despite being one of the poorest Arab countries, the kingdom of Morocco has been spared the widespread protests seen elsewhere in North Africa and the Middle East.

Just last week, however, the regime suffered the strongest reminder that serious reforms are not a luxury, but a necessity. The Marrakesh bombing has been the deadliest in a series of violent incidents that have occurred on a yearly basis since the Casablanca bombings of 2003, when 45 people died in an attack that involved 12 suicide bombers. The attacks that killed 16 and injured 21 others on the Jamma El Fna in Marrakech targeted Morocco's core industry, tourism, and with it the foreign tourists who have visited the country by the millions over the last decade.

This newest attack reveals some of the details of the Moroccan situation that are difficult for Arab neighbours to the east and European neighbours across the Strait of Gibraltar to understand.

Morocco's traditional monarchy is based on the centuries-old idea that the monarch is the "Commander of the Faithful" - Amir Al Mu'minin - of Morocco's religious community. Effectively, this means that contesting the supreme role of the king is sacrilege. Most Moroccans, especially in rural areas, have rallied in support of the king on many difficult occasions since Morocco gained independence from French colonial rule in 1956. The bond between Moroccans and their ruler is not based solely on fear, as has been the case in some other states in the Middle East. Rather, it is profoundly religious.

The king's religious role has significantly reduced the scope of protest action. It is inconceivable to hear public calls for the king's removal, and even privately, it has been an idea limited to a handful of intellectuals and political activists. This is true in spite of two attempted military coups during the early 1970s.

Consequently, opposition to the regime and calls for reforms have limited themselves to calls for greater public accountability, greater participation of political parties in the national government, and for increasing the scope and protection of human rights.

Since the early 1990s and especially under King Mohamed VI, who has ruled since 1999, the regime has responded positively to such demands and has even taken the initiative, while insisting on an implicit bargain in which the opposition would refrain from asking for reforms that might touch upon the supreme position of the king.

For example, the current 1996 constitution allows the king to appoint the prime minister without consideration of electoral outcomes, and to appoint all senior positions from the minister of justice, and the minister of interior, to high-ranking military officers. He is the supreme commander of the armed forces, and the royal office is the primary initiator of most, if not all, pieces of legislation.

From a position of strength, the king was able to grant substantial political freedoms. These included a multi-party system, a guarantee of free and fair elections for almost 20 years now, complete with supervision by international observer groups, and in 2004 the establishment of a public truth and reconciliation commission. Here, hundreds of victims of human rights abuses were able to talk on national TV about the tortures they suffered under King Hassan II, who ruled until 1999.

However, this relative freedom also pushed many parties and citizens to call for a Spanish-like transition from authoritarian rule to constitutional democracy, a demand that the king and the royal advisers, called makhzen, have tried to quell. When mass protests brought down Hosni Mubarak and Zine el Abidine Ben Ali, timid protests inside Morocco repeated the long-standing demand of a constitutional democracy in a movement called 20 February. In response, the monarch caught his adversaries by surprise by announcing a constitutional reform that would, as in the 1990s and before, be approved by referendum.

Unlike Tunisia (but similar to Egypt), there was no constitutional assembly that was charged with instituting reform, but a commission hand-picked by the monarch himself. The 20 February Movement continued its protests, which accelerated after one rally was violently dispersed in Casablanca on March 13. Again in response to this dissatisfaction, the monarch began a heightened process of political consultation. Political parties - all more royalist than even the king himself - were requested to submit their proposals for reform, as were some activists of the 20 February Movement in an attempt to co-opt them into the political space. The pro-reform weekly newspaper TelQuel wrote on April 22 quite accurately that "the revolution is the king".

In this situation, the effects of the Marrakech bombing are likely to be disastrous for any substantial constitutional reform. Throughout its history, and particularly since the Casablanca attacks, the Moroccan kingdom has always been able to portray itself as the guarantor of stability. If pro-constitutional reform activists were initially confident in calling for substantial changes following the Tunisian or Egyptian examples, their constituency may now be a lot smaller than it was before.

An emphasis on economic reforms, such as an increase in the minimum wage or more subsidies, will also become more prominent in an effort to deflate the economic causes of violence and terror. Reformers will also look to neighbouring Tunisia, where in spite of the revolution, unemployment continues to cause young graduates no shortage of despair. This will ultimately limit the role played by the Tunisian model, which has otherwise served to inspire waves of enthusiasm since January.

James N Sater is an associate professor at the department of international studies at the American University of Sharjah