The biomass-derived platform chemical 5-(chloromethyl)furfural is converted into the blockbuster antiulcer drug ranitidine (Zantac) in four steps with an overall 68% isolated yield.