Pernicious anemia is a type of autoimmune disorder where the body is unable to absorb enough vitamin B12, which is essential for red blood cell production. This occurs due to the immune system attacking cells in the stomach that produce a protein called intrinsic factor, necessary for vitamin B12 absorption.