For example,the government of Great Britain introduced a law in 1853 for nationwide vaccinations.
Those who did not follow the law were fined.
In the United States,the Supreme Court ruled that state governments could have people vaccinated for the common good.
Today,children in the US must get some vaccinations by law before entering school.