Messenger RNA (mRNA) is a single-stranded molecule that carries genetic information from DNA to the ribosome, where proteins are synthesized. It serves as the template for translating the genetic code into a specific sequence of amino acids, thus playing a crucial role in gene expression and protein synthesis.