The gentle clicking of Sheikh Abu Samir's prayer beads as he lounged against a bolster in his camel-hair tent evoked the wilderness of Saudi Arabia's desert, not a dusty camel market beside a Riyadh motorway.

The kingdom's Bedouin might have forsaken a desert lifestyle that brought more hardship than riches, but their tribal identity retains a lingering influence in modern Saudi life and one that some Saudis believe may be enjoying a revival.

(Tribal feeling) is growing, said Saad al-Sowayan, a Saudi anthropologist who specialises in Bedouin oral history.

While experts debate whether that is true and why, the authorities, whose success in building a modern state was in part dependent on settling the Bedouin and ending centuries of infighting, have shown themselves concerned enough to take steps to curb any resurgence of tribalism.

The government two years ago closed a television station after it broadcast poems glorifying tribal rivalry, according to local media, and in 2008 told police to remove tribal bumper stickers from cars, according to a U.S. diplomatic cable from the time released by WikiLeaks.

The tribes are still strong, said Abu Samir, a chief in the Otaiba tribe, as he drank tiny thimbles of Arabic coffee with companions in a tent among the pungent animal pens of the camel market. But the olden days were better.

Tribal affiliation is overall much weaker now than when the kingdom was founded by Abdulaziz Ibn Saud in 1932. But a revival would likely be seen as potentially disruptive, particularly in view of the civil war in Iraq that involved several major tribes with members in both countries.

That concern may have been behind government intervention to mediate a playground scuffle near the Yemeni border in 2006 for fear it could spread from a pair of schoolboys to their large rival tribes, local media reported at the time.

You cannot expect tribalism to disappear over one, two or three decades. It takes longer than that, said Khalid al-Dakhil, a political scientist in Riyadh.

Also, maybe the state itself, although it is anti-tribal, still at the same time as it has always done, uses tribal mechanisms for political ends, he added.

CONTINUED INFLUENCE

Tribal influence registers in subtle ways, and is often most obviously manifested when tribal members have a problem with the authorities.

Because their positions depend on their level of popular support, tribal chiefs will often work as hard as possible to mediate on behalf of their tribesmen.

His power comes from showing he has lots of constituents, so he will help people to get into hospital or get a business deal because it will help boost his position with the government, Sowayan said.

Tribal leaders have boasted of their ability to secure more lenient sentences for fellow tribesmen who fall foul of the law, while members of bigger clans have a better chance of escaping the death penalty because there are greater resources to fund blood money payments to victims' families.

Tribalism plays a key role in modern-day Saudi foreign policy, said a U.S. diplomatic cable sent from Riyadh in March 2008 and released by WikiLeaks, noting examples of how blood ties affected relations with neighbouring Yemen and Iraq.

It also has an important bearing on social relations, even extending to who can wed whom.

Many Saudis were outraged in 2007 when a judge annulled an apparently happy marriage after two years because the wife's brother did not want to be associated with her husband's lowly tribe. Such influence comes at a cost, however.

What is clear at this point is that the role and influence of the tribal leadership has declined significantly. They can maybe help some relatives to get a job, they can maybe use their connections to minimise legal sentences against one of their relatives, but they will have to pay for it, said Dakhil.

BEDOUIN ROOTS

Although Saudi Arabia now celebrates its Bedouin roots with televised camel beauty contests and sword dancing, only a handful of semi-nomads remain in the country's northern deserts where they scratch a living ranching sheep.

Nomadism as an economic structure is gone... People came to the city for government services and bank loans. The desert is overgrazed and the game is overhunted... Now you can hardly find gazelle, said Sowayan.

As the tribes settled, their military strength evaporated and with it the political might that they once wielded across the Arabian Peninsula.

However, as Sowayan points out, the tribes can still provide a bridge between some ordinary Saudis and the authorities, dominated by the Al Saud ruling family and senior clerics of the official Wahhabi school of Islam.

When online activists threatened a big protest in the kingdom during last year's Arab uprisings, state television aimed to remind viewers that the nation was unified behind King Abdullah by showing tribal leaders paying obeisance.

Abdullah differs from his half brothers in having been born to a Bedouin mother, and has always been seen as closer to the tribes than the rest of his family, who were townfolk.

That connection was strengthened by his role since the early 1960s as head of the Saudi Arabian National Guard, which was formed from Ibn Saud's original tribal army and is still the government body with closest ties to the Bedouin.

That sort of relationship with the authorities has helped the tribes to reconcile their loss of power with the advantages of joining a modern state.

Sitting cross-legged next to Abu Samir, one of his companions tossed a date into his mouth and said: After King Abdulaziz everything changed. What we have now are the traditions. The love of camels, poetry and love of the desert.

(Editing by Sonya Hepinstall)