Folic acid helps your body produce and maintain new cells, and also helps prevent changes to DNA that may lead to cancer. As a medication, folic acid is used to treat folic acid deficiency and certain types of anemia (lack of red blood cells) caused by folic acid deficiency.