Introduction Sleep disorders in hemodialysis patients are of high prevalence affecting the lives of these patients. Objective The present study was conducted to investigate the effect of family-centered and peer-centered education on the sleep quality of hemodialysis patients. Methods In this controlled clinical trial, 90 patients were randomly assigned to three groups (control, family-centered, and peer-centered). All three groups completed Pittsburgh Sleep Quality Index before the intervention. The intervention included five training sessions conducted by the researcher according to the patients’ needs to improve their sleep quality. Routine ward interventions were performed for the control group. At the end of the study, the Pittsburgh Sleep Quality Index was completed by all three groups once again. Data were collected and analyzed using SPSS version 24 software and statistical tests. Results No significant difference was found between the two intervention and control groups regarding demographic variables and variables related to sleep quality before the intervention ( p < .05). However, based on the results of the Wilcoxon test, there was a statistically significant difference between the mean rank of sleep quality in the intervention and control groups after the intervention ( p-value = .008), indicating that sleep hygiene education was effective in the two intervention groups. Conclusion According to the findings, the mean rank of sleep quality in the two intervention groups was significant after the training, indicating the effectiveness of family-centered and peer-centered education. Accordingly, medical healthcare managers, policymakers, and planners, including nurses, are recommended to employ these convenient, safe, and cost-free training methods and provide better sleep quality and more comfort to patients by spending a short period of time for training.