Sometimes, the Zawaya and Hassane roles changed with this: military and economic strength would often lead to a gradual redefinition of the tribe's role, and, simultaneously, to its self-perception of religious and ethnic background.