The new law also prohibits the use of tobacco products on any type of school grounds, no matter if it's public or private.
People who turned 18 before Dec. 31 will still be able to buy cigarettes and tobacco products unless they live in a city or town that already requires a higher age.
>>MORE: Growing concern about 'juuling' among teens in local schools
In Massachusetts, there are 194 municipalities that have locally raised their tobacco age to 21.
Massachusetts is now the sixth state in the country to push its tobacco age to 21. Maine is the only other New England state that has done so.
>> Alarming spike in teen vaping; 37% of high school seniors say they vaped in past 12 months