New York (CNN) -- New York City Mayor Michael Bloomberg signed legislation Tuesday raising the tobacco-purchasing age from 18 to 21. The law takes effect in six months.
In addition to the "Tobacco 21" bill, which also covers electronic cigarettes, Bloomberg signed a second bill, dubbed Sensible Tobacco Enforcement, which prohibits discounts on tobacco products and increases enforcement on vendors who attempt to evade taxes. New York State's Department of Health estimates that cigarette excise tax evasion deprived the state of $500 million in 2009.
"By increasing the smoking age to 21, we will help prevent another generation from the ill health and shorter life expectancy that comes with smoking," Bloomberg said in a written statement when the legislation was approved by the city council in October.
New York City becomes the largest city to have an age limit as high as 21. Needham, Massachusetts, raised the sale age to 21 in 2005, according to the New York City Department of Health.
Neighboring states and counties have raised the tobacco sale age to 19, including New Jersey in 2005, the Department of Health said.
Raising the sale age "will protect teens and may prevent many people from ever starting to smoke," Health Commissioner Thomas A. Farley said in a statement released after the vote.
This is the latest step in the outgoing mayor's mission for healthier New York City lifestyles.
In September 2012, the Board of Health voted to ban the sale of sugary drinks in containers larger than 16 ounces in restaurants and other venues, a measure Bloomberg spearheaded.
The ban was later tossed out by a New York State Supreme Court judge.