Autoimmune pancreatitis is a benign fibroinflammatory disease of the pancreas of probable autoimmune origin, which includes 2 different phenotypes: type 1 (lymphoplasmacytic sclerosing pancreatitis) and type 2 (idiopathic duct-centric pancreatitis). Its clinical presentation as obstructive jaundice in patients with a pancreatic mass is common and therefore it must be included in the differential diagnosis of pancreatic neoplasia. Many diagnostic criteria have been described throughout history. The most famous are the HISORT criteria of the Mayo Clinic and the international consensus criteria of 2011. One of the main features of autoimmune pancreatitis is its dramatic response to steroid therapy, without the need for surgical treatment. Knowledge of this disease can dramatically change the management of patients with obstructive jaundice, who would otherwise be subjected to a pancreaticoduodenectomy.