Religion does not always legitimate power. For example, during the 1960s religion played an important role in the civil rights movement in America, with MartinLutherKing.
In Latin America 'liberation theology' has become a powerful force promoting social change.
In contemporary China, religion is thriving, especially amongst Christian and Muslim communities.