Autoimmune pancreatitis (AIP) is an unusual inflammatory condition that occurs because the immune system mistakenly ends up attacking the pancreas, causing inflammation which can not only affect the pancreas, but other areas including the kidneys, liver, lungs, salivary glands, and lymph nodes.