Both DNA and RNA share adenine, cytosine, and guanine as bases. However, DNA uses thymine as its fourth base, while RNA uses uracil instead of thymine.