Systemic lupus erythematosus (SLE) is a complex autoimmune disease that affects several organs and causes variable clinical symptoms. Early diagnosis is currently the most effective way to save the lives of patients with SLE. But it is very difficult to detect in the early stages of the disease. Because of this, this study proposes a machine learning system to help diagnose patients with SLE. To carry out the research, the extreme gradient boosting method has been implemented due to its performance characteristics, as it allows high performance, scalability, accuracy, and low computational load. From this method we try to recognize patterns in the data obtained from patients, which allow the classification of SLE patients with high accuracy and differentiate these patients from controls. Several machine learning methods have been analyzed in this study. The proposed method achieves a higher prediction value of patients who may suffer from SLE than the rest of the compared systems. The proposed algorithm achieved an improvement in accuracy of 4.49% over k-Nearest Neighbors. As for the Support Vector Machine and Gaussian Naive Bayes (GNB) methods, they achieved a lower performance than the proposed one, reaching values of 83% and 81%, respectively. It should be noted that the proposed system showed a higher area under the curve (90%) and a balanced accuracy (90%) than the other machine learning methods. This study shows the usefulness of ML techniques for identifying and predicting SLE patients. These results demonstrate the possibility of developing automatic diagnostic support systems for SLE patients based on machine learning techniques.