The present study is a double-blind clinical trial with a pre-test, post-test and follow-up with a control group, which is available as a sampling from among the elderly men aged 65 and older living in Kermanshah nursing home who consent to participate in the study and are eligible. The conditions and criteria for entering the study are, in the form of a permutation block of 4 people, 68 of these people were randomly assigned to 2 intervention groups receiving an educational package based on cognitive behavioral therapy (34 people) and control (34 people), with the aim of investigating the effect of the package Training based on cognitive behavioral therapy on sleep quality and mental health of elderly men living in Kermanshah nursing home will be conducted in 1403. After receiving the code of ethics and registration in the clinical trial center of Iran and a written permission from the research vice-chancellor of Ilam University of Medical Sciences, first go to the general welfare department of Kermanshah city and after going through the legal procedures, considering the ethical principles of the research and introducing them to the relevant nursing home. A written informed consent will be obtained from the elderly referring to the nursing home who are willing to participate in the study and who meet the criteria for entering the study, and after being divided into intervention and control groups, a pre-test will be conducted using a quality questionnaire. Pittsburgh Sleep and Goldberg Public Health will be completed by the secretary. The method of assigning people to the intervention and control groups will be as follows: 1) PPCC 2) PCPC 3) PCCP 4) CCPP 5) CPCP and 6) CPPC will be written on 6 separate sheets, where the letter P means Practice (educational package based on cognitive behavioral therapy) and the letter C means Control (without intervention). We will put 6 sheets in 6 separate envelopes. In the target nursing home, there are 4 buildings, buildings number 1 and 2 will be considered as one block and buildings number 3 and 4 will be considered as one block, and by throwing a coin, it will be determined whether they are intervention or control, then by referring to each The elderly person will be given an envelope to the nursing home center if they meet the entry criteria and personal satisfaction, based on the 4 permutation block randomization method, which contains the desired sequences, and after the sequence appears, if the letter P is displayed (educational package based on cognitive behavioral therapy) he is given a container containing two balls with the numbers of the intervention building (after determining the intervention building) to randomly choose one and enter one of the intervention buildings, and if the letter C (control) is displayed He is given a container containing two balls with the numbers of the control building, so that he randomly chooses one and enters one of the control buildings, which will determine the status of the next 3 people besides himself, and the next 3 people will be given only the container containing the balls. will be given and the next envelope will be opened by the fifth person. The above process will continue until the desired sample volume is reached. To hide the created sequence, envelopes will be embedded that will be completely similar to each other. This method will continue until the end of allocating samples.