legalization
When something is legalized, it is made legal by law. This means that it is no longer illegal to do or have it.
The drug is still illegal, but the government has legalized the use of it.
The law legalizing samesex marriage was passed in 2015.