Beginning in the early 1900s, the Supreme Court said that the 14th Amendment means that the Bill of Rights applies to state governments as well. It does this because it says that states cannot deprive people of their "liberty" without due process of the law.
Hope this helps.