Fresh smoke dissipates in a couple of hours, but if the apartment has been permeated with the tobacco “aroma” for years, you will have to take radical action.
The secret is to attack the problem from all sides - otherwise the smell will return like an annoying neighbor.
Start with a thorough cleaning: Tar and nicotine stains cover every surface, from chandeliers to baseboards.

Wipe everything - walls, shelves, appliances, door handles - with detergent, throw the curtains in the wash, and dry clean the upholstered furniture. Yes, even the sofa that seems clean.
Old wallpaper or paint can absorb the smell permanently - if the walls continue to "smoke" after cleaning, get ready for renovation.
But don't rush to tear off the coverings! Try special sprays against tobacco smells. Some of them work locally - spray on the most "suspicious" areas.
Others, professionals, spray into the air after closing the windows and increasing the humidity.
After 12 hours of such a “gas attack,” the room will begin to resemble a laboratory—you’ll have to wash everything and air it out for 24 hours.
And yes, hide food and dishes: chemicals don’t even spare cups.
And now the main life hack - the ozonizer. This device is not for the faint of heart: it turns the air into poisonous for all living things, but it breaks down the odor molecules into atoms.
Household lamps will freshen up the atmosphere a little, but for stale smog you need an industrial monster.
Call the experts, take away the children, cats and even fish - ozone will not leave them a chance. After 8 hours of airing, you will enter an apartment that smells like... nothing. Yes, it costs money. But if you dreamed of forgetting what the "aroma" of an ashtray is - it's worth it.
It has been proven that even in an apartment where people have been smoking for decades, these methods work wonders.
The main thing is not to stop halfway. After all, the smell of tobacco is insidious: it hides in textiles, eats into plaster and laughs at air fresheners. But now you know how to defeat it.