Life in military environments is stressful and can affect the quality of life. Proper training can influence its improvement. This study investigated the effect of mindfulness and psychological capital training for six weeks on different aspects of the quality of life of medical students. The results showed that both mindfulness and psychological capital training improved students' quality of life, and mindfulness training was more effective than psychological capital training. The results agree with Ghadampour et al. (
18) and Rahmani Fard et al. (
19). It was concluded that psychological capital would improve people's quality of life through optimism and hope. Optimism is an attributive method used to define positive events based on personal sustainable, and pervasive reasons and negative events based on external temporary, and specific conditions (
20). Sometimes optimism, like hope, is considered a psychological attribute but an explanatory method of optimism can be learned and expanded; also, its role in work performance has been approved by others in a practical (
20,
21), Realistic (
22), and flexible (
23) mode. Optimism will equip organizational managers and workers to understand when they should use optimistic or pessimistic explanatory methods. They will also be able to adjust these methods to current situations in a realistic way, specifically in workplaces (
24). Although hope can be considered a characteristic, it is known chiefly as an expandable state (
24). Using practical approaches such as setting challenging goals, general goals of contingency, planning, and retargeting will raise the students' hopes. It increases physical, mental, social, and environmental health and improves the students' quality of life.
Carlson et al. (
25) found remarkable changes in breast and prostate cancer patients' quality of life, stress signs, and sleep quality. These changes occurred after patients participated in mindfulness and stress-relieving programs. Focusing on past events was the cause of individuals' mental problems. In a mindfulness program, the individual will be aware of the mental gear and use more beneficent methods. Learning to take a neutral position toward experiences, reducing judgments, biases, and predictions, and having an initiative mind are the purposes of these programs. Having an initiative mind means envisioning things and affairs vividly; it is like seeing and experiencing them for the first time.