Opinio juris sive necessitatis or Opinio juris (loosely translated into English as "opinion of justice") is the belief that a behavior was done because it was a legal obligation. This is in contrast to a behavior being the result of different cognitive reaction, or behaviors that were habitual to the individual. This term is frequently used in legal proceedings such as a defense for a case