first commercial root beer was invented by pharmacist Charles E. Hires in the 1800s, but the origins date back much further.