Megaloblastic anemia is a type of anemia characterized by the presence of abnormally large and immature red blood cells, known as megaloblasts, in the bone marrow and bloodstream. This condition is primarily caused by deficiencies in vitamin B12 or folate, which are critical for DNA synthesis and cell division.