Hairpin loops are secondary structures that form in single-stranded RNA molecules when complementary base pairs within the same strand interact, creating a U-shaped loop. These structures are an important feature in the overall folding and function of RNA.