Found in many permanent hair color products in varying strengths, ammonia is a very strong, alkaline chemical ingredient that creates a chemical interaction with the developer to lift color from the hair.
Always detangle wet hair with a good quality hair pick or wide toothed comb. Make sure that the pick or comb's "teeth" are smooth to prevent snagging or ripping delicate wet hair.