A technique facilitates a welding operation in a variety of difficult environments, including downhole environments, to enable formation of a dependable connection between components. A tool may be constructed to contain a material mixture used in the welding operation. The tool is conveyed to a position adjacent a weld region of components to be welded together. The material mixture is of a type which may be ignited to initiate a reaction which forms a molten metal from at least one constituent in the material mixture. Additionally, the tool comprises a nozzle oriented to direct the molten metal to the weld region so as to form a secure, welded connection between the components.