Folic acid plays a crucial role in the formation of the neural tube by facilitating the proper division and replication of cells. It helps in the synthesis of nucleotides, which are building blocks of DNA. Adequate levels of folic acid ensure that the neural tube closes properly, thereby preventing NTDs.