It was not made illegal. Cigarettes are available everywhere.
It was made uncool. The product placement in movies and such disappeared, so you don't see super cool hero looking awesome as he smokes while going to do something important.
Ads targeted at kids are illegal. Everyone knows it is unhealthy. There isnless social pressure to smoke.