The present invention is directed to a composition for straightening or relaxing hair containing, in a cosmetically suitable medium:(a) at least one hydroxide-containing active ingredient(b) at least one polyhydric alcohol having 4 or more carbon atoms and two hydroxyl groups.The present invention also concerns a process for straightening or relaxing hair using such a composition.