Crime is defined as deviant behavior that violates accepted laws or rules. Sociologists study crime using theories like differential association theory, control theory, and routine activities theory. Differential association theory suggests people are more likely to commit crimes if they associate with groups that view crime positively. Control theory proposes people refrain from crime if they feel bound to their society. Routine activities theory states crime depends on opportunities that bring offenders, targets, and lack of guardians together. Sociologists examine crime patterns among age, gender, race, social class, and ethnicity groups to better understand who commits crimes and why. Understanding the sociology of crime allows societies to develop solutions that prevent criminal behavior and recidivism.