Abstract The numerical simulation analysis of a typical cast steel bifurcation joint under the alternating load was performed to comprehend its mechanical properties. The MSC Fatigue is used to explore and analyze the fatigue behavior of joints, and the control variable approach is used to examine the impact of various geometric parameters on fatigue life. Then, the load spectrum and fatigue life were invertedly calculated and transformed into maximum stress constraints by converting fatigue limitations into stress constraints. Finally, the optimal shape of cast steel bifurcation joint under fatigue limitations was studied using topology optimization methods, intending to solve the lightweight problem while still fulfilling fatigue design requirements. The research results show that the intersection of the main and branch pipes is the fatigue weakest part of the whole joint, and the geometric parameters significantly affect the joint's fatigue performance. The topology optimization shapes of cast steel bifurcated joints are different under vertical and horizontal loads, indicating that different load conditions significantly impact topology optimization shapes. The topology optimization method can reduce the self-weight while maintaining fatigue performance.