Method for welding together two parts (12, 13), especially of a turbomachine, which are exposed to different temperatures, of which the first part (12) is made from a steel and the second part (13) is made from a nickel-base alloy, which nickel-base alloy contains additional elements, such as for example Nb, which, when joined to steel, cause the formation of cracks or unfavorable mechanical properties in the joining zone, characterized in that first of all an intermediate layer (18), in which the amount of the additional elements is progressively reduced from the inside outward, is applied to the joining surface (17), which is provided for the welding, of the second part (13), and in that then the second part (13), which has been provided with the intermediate layer (18), is welded to the first part (12).