Hydrogen bonds are weak interactions that occur between a hydrogen atom covalently bonded to an electronegative atom and another electronegative atom. These bonds play a crucial role in stabilizing the structure of nucleic acids, particularly DNA, by forming connections between complementary base pairs, which is essential for the integrity and function of genetic material.