Legalization is a process often applied to what are now regarded as consensual crimes, such as homosexuality, or the consumption of illegal drugs.
It can also occur without political upheaval in the repeal of ancient and no longer relevant laws.
In video engineering, "legalization" can refer to the process of applying constraints on a video signal to keep it within the limits required for broadcast.