The article examines the legal grounds for the establishment of the necessity defense against criminal liability. It mentions about the recognition of self-defense and duress as defenses against criminal liability under criminal law jurisprudence as necessity defense. It also informs on the duty of social solidarity.