Generalization remains a significant challenge in the application of deep learning methods, particularly in predicting mooring line tension for moored floating structures. The dynamic and complex nature of marine environments makes accurate prediction of mooring line tension a formidable task. Existing deep learning models, constrained by the data distribution of their training sets, typically perform well within the scope of these datasets. However, their limited generalization capability becomes apparent when confronted with unknown and changing marine conditions, resulting in a decline in prediction accuracy. To address this issue, this paper proposes a Domain Generalization (DG) model approach, which incorporates a distribution matching regularization term to the model's loss function, aimed at reducing distributional disparities between data from different domains. The proposed method was compared with existing Deep Neural Network (DNN) model method through validation with engineering case studies. The results indicate that the DG model method significantly surpasses the DNN model in terms of generalization capabilities. The mooring line tension prediction model developed herein holds potential for constructing digital twins, offering near real-time data support for moored floating engineering projects. This facilitates timely and accurate decision-making in response to environmental changes.