To add a bit of clarification:
The clause of Article VI of the U.S. Constitution declares that all laws and treaties made by the federal government shall be the "supreme law of the land."
Meaning, if the state law & federal law ever contradict each other, federal law reigns supreme over state law.
This is also known as the Supremacy Clause.