Deviance or the sociology of deviance explores the actions and/or behaviors that violate social norms across formally enacted rules (e.g., crime) as well as informal violations of social norms (e.g., rejecting folkways and mores).

Although deviance may have a negative connotation, the violation of social norms is not always a negative action; positive deviation exists in some situations. Although a norm is violated, a behavior can still be classified as positive or acceptable.

Social norms differ throughout society and between cultures. A certain act or behaviour may be viewed as deviant and receive sanctions or punishments within one society and be seen as a normal behaviour in another society. Additionally, as a society's understanding of social norms changes over time, so too does the collective perception of deviance.

The violation of norms can be categorized as two forms, formal deviance and informal deviance. Formal deviance can be described as a crime, which violates laws in a society. Informal deviance are minor violations that break unwritten rules of social life. Norms that have great moral significance are mores. Under informal deviance, a more opposes societal taboos.

More Info: en.wikipedia.org