The dominance of particular traditions shifted according to dynasty and region throughout the Common Era. At times Taoism and Buddhism were allied with the government. At other times, particularly on the local level, they nurtured resistance movements.