Bars are smelted from ore at a Furnace (or the Hellforge and Hardmode forges) and are the core crafting material for tools, weapons and armor at every tier.
Smelt ore at a Furnace. Hellstone needs a Hellforge, and Hardmode ores (Adamantite/Titanium) need their dedicated Forge crafted after a Mechanical Boss.