Welding machines are primarily used to fuse metallic materials together by melting them using heat generated from an electrical arc, pressure, or other means. They are essential tools in various industries for creating strong and durable bonds between metal components.