Oftentimes to effect change in society people have broken laws that they deemed to be unjust or immoral. Some examples include: Germans who hid Jews from the Nazi's during WWII, "The Boston Tea Party" which preceded the Revolutionary War in the U.S., slaves from the south ran away to the north, or African Americans sitting at "whites only" lunch counters and refusing to ride in the back of bus, participating in interracial marriage even though it was "against the law" to do so.
Today it's against the law in the U.S. to discriminate against anyone based upon religion, race, age, gender, and sexual orientation!
Where would we be as a society if everyone was a conformist!
Some famous people who have been arrested for breaking laws to effect change include Jesus, Mahatma Gandhi, and Martin Luther King.
Having said that there are other instances when people break the law for selfish reasons or out of fear of the consequences such as a hit and run car accident or aiding a family member who is a fugitive, or lying under oath.
Just about every one has (knowingly and intentionally) broken speed limit laws. Many people have been known to declare false tax deductions when filing their income tax or they hid income from the IRS, eating grapes or other fruit from a produce bin while in a grocery store (under the guise) of "sampling" which is shoplifting.