Abstract: The invention relates to a method of welding of at least two metal-based materials (5, 7), non-weldable directly to each other with resistance welding. At least one spacer (6) is joined by welding on at least one of the two surfaces of a material (5) in every interstice between two surfaces of materials to be welded. The welded spacer (6) is utilized so that resistance welding is focused to the surface of the material (5) with the spacer (6) to melt at least one spacer (6) located on the heat affecting zone in order to achieve a weld between the metal-based materials (5, 7).