Base pairing rules dictate the specific hydrogen bonding between nucleotide bases in DNA and RNA: adenine pairs with thymine (or uracil in RNA), and cytosine pairs with guanine. These rules ensure the complementary structure essential for accurate replication and transcription of genetic information.