In the present work, the dissimilar joints between C45 carbon steel and nickel-chromium 16NiCr6 steel rods were produced using rotary friction welding process. Statistical analysis based on response surface methodology (RSM), microstructural examination using scanning electron microscopy with backscattered electron diffraction (EBSD) and mechanical tests were performed to investigate the friction weld joints. The results showed that friction time and rotation speed were the most effective parameters on the weld joint quality with the highest t-ration of − 4.27, where the maximum bending strength of 1406.9 MPa was obtained at 2000 rpm for 13 s friction time. Increasing friction time to 13 s resulted in remarkable decrease in grain size (about 35%) at the weld interface, which increased the hardness (350HV0.1) and elastic modulus (260 GPa).Graphical abstract