Avoid shampooing your hair one to two days before dying. Shampooing your hair eliminates the protective oil layer on your scalp that is needed to act as a barrier against the chemicals during the coloring process.