Here's how it works:
* Base Pairing: Adenine (A) always pairs with thymine (T), and guanine (G) always pairs with cytosine (C). This specific pairing is called complementary base pairing.
* Hydrogen Bonds: Each base pair is held together by two (A-T) or three (G-C) hydrogen bonds. These are relatively weak bonds individually, but collectively, they provide a strong and stable connection between the two strands.
Think of it like a ladder, where the sides are the sugar-phosphate backbones of the DNA strands and the rungs are the base pairs connected by hydrogen bonds.