Massachusetts has an adult-use (recreational) program that requires customers to be at least 21 years of age. Massachusetts also has a medical program that requires patients to be at least 18 years of age. Massachusetts doesn't have reciprocity so out-of-state medical patients are required to be at least 21 years of age.
See also:
How do I obtain a Massachusetts Medical Marijuana Card?