They pair together in DNA through two hydrogen bonds. In RNA, uracil replaces thymine and pairs with adenine.