mRNA secondary structures form through the interaction of complementary nucleotides within the RNA molecule. These interactions result in various structural motifs such as hairpins, loops, bulges, and pseudoknots. The formation and stability of these structures are influenced by the nucleotide sequence and environmental factors like ion concentration and temperature.