A major railway project is a complex, giant system with multi-party participation, one characterized by complex geological conditions, long construction periods and large scale, which leads to an increased likelihood of safety risk events during construction. In order to solve the problem of scientific selection and formulation of safety risk prevention and control strategies for major railway projects, an auxiliary selection method of safety risk prevention and control strategies for major railway projects based on weighted Euclidean distance (WED) is proposed. The relevant ontology is used to conceptualize and formalize the knowledge of safety risks of major railroad projects, and combine the characteristics of major railroad projects; it refers to the prevention and control measures of historical safety risk events associated with major railroad projects, and then constructs the knowledge structure and case base around safety risks of major railroad projects and the circumstances of the case. In determining the comprehensive weights, the G1 method is used to determine the subjective weights, the anti-entropy weight method is used to determine the objective weights and game theory combines the subjective and objective weights. In comparing the array of safety risk prevention and control cases associated with major railway projects, the weighted Euclidean distance is used to calculate the similarity between these cases and the target case, which in turn assists project managers in determining the safety risk prevention and control strategies appropriate for major railway projects. This study takes Landslide No. 1 in the Tunnel A inlet planning area as an example. It utilizes the WED method to assist in selecting safety risk prevention and control strategies for major railway projects, which verifies the method’s feasibility. The proposed method enriches the method of the assisted selection of safety risk prevention and control strategies for major railway projects, makes strategy formulation more scientific, has specific reference significance for the formulation of safety risk prevention and control strategies for major railway projects, and promotes the improvement of safety risk prevention and risk control for participating units.