Self-defense is a legal justification that allows individuals to use a reasonable amount of force to protect themselves or others from imminent harm. Procedural and substantive defenses are broader categories of legal arguments used in court, while immunity protects someone from prosecution.