Pernicious anemia is a type of megaloblastic anemia that occurs due to deficiency of vitamin B12}.
This vitamin is essential for DNA synthesis in red blood cell production. Its deficiency leads to formation of abnormally large and immature red blood cells.