mixed difficulty

How did religouis diversity affect Song Dynasty and northen Indian kingdoms?