Objective: Deep learning models, including recurrent neural network (RNN) and gated recurrent unit (GRU), were used to construct the clinical prognostic prediction models for peritoneal dialysis (PD) patients based on routine clinical data. The performance of the RNN and GRU were compared with logistic regression (LR), which is commonly used in medical researches. The possible underlining clinical implications based on the result from the GRU model were also investigated. Methods: We used the clinical data from the PD center of Peking University Third Hospital as the data source. Both the baseline data at the beginning of dialysis, and the follow-up and prognostic data of the patients were used by the RNN and GRU prediction models. The hyper-parameters were tuned based on the 10-fold cross-validation. The risk prediction performance of each model was evaluated via area under the receiver operation characteristic curve (AUROC), recall rate and F1-score on the testset. Results: A total of 656 patients with the 261 occurrences of death were included in the experiment. The total number of all diagnostic records were 13 091. The results on the testset showed that the AUROC of the LR model, RNN model, and GRU model was 0.701 4, 0.786 0, and 0.814 7, respectively. The predictive performances of the GRU and RNN models were significantly better than that of the LR model. The performances of the GRU and RNN models assessed by recall rate and F1-score were also significantly better than that of the LR model, in which the GRU model reached the best performance. In addition, the recall rates were different among different causes of death or by different prediction time windows. Conclusion: The recurrent neural network model, especially the GRU model, is more effective in predicting PD patients' prognosis as compared with the LR model. This new model may be helpful for clinicians to provide timely intervention, thus improving the quality of care of PD.