Root beer is a sweet soda traditionally made using the sassafras tree Sassafras albidum (sassafras) or the vine Smilax ornata (sarsaparilla) as the primary flavor. Root beer may be alcoholic or non-alcoholic, come naturally decaffeinated or have caffeine added, and carbonated or non-carbonated. It usually has a thick, foamy head when poured.