Here are some examples of how "legalize" is used:
* "The government legalized marijuana for recreational use."
* "The city council is considering legalizing short-term rentals."
* "They are pushing for legalizing assisted suicide."
The opposite of legalize is "criminalize" or "outlaw", which means to make something illegal.