Consuming your calories earlier rather than later has been known to boost weight loss and fight body fat.

» RELATED: These 9 healthy-sounding foods have more sugar than a Krispy Kreme doughnut

And new research published Tuesday in the International Journal of Cancer suggests eating your last meal before 9 p.m. — or at least two hours before bed — may also lower risk of breast and prostate cancers.

Researchers in Spain conducted a population-based case-control study between 2008-2013 and followed 621 individuals with prostate cancer; 1,205 with breast cancer; 872 males without cancer and 1,321 females without cancer. The two latter groups made up the control group.

» RELATED: Why are more black women dying of breast cancer compared to white women?

Previous research has also shown an association between breast/prostate cancer risk and night-shift work and an individual's sleep-wake cycle, lead author Manolis Kogevinas told CNN. But no night-shift workers were included in the study.

“We assessed whether timing of meals is associated with breast and prostate cancer risk taking into account lifestyle and chronotype, a characteristic correlating with preference for morning or evening activity,” Kogevinas and his team wrote in the study.

Each participant was interviewed about their eating patterns (including timing of meals), sleep patterns, chronotype and completed a “Food Frequency Questionnaire.” Researchers also measured participants’ adherence to global cancer prevention recommendations.

Findings

According to the study, participants sleeping two or more hours after dinner had a 20 percent lower risk of developing prostate or breast cancer combined compared to subjects sleeping immediately after dinner.

» RELATED: Men's testosterone levels influenced by where they grow up, study suggests

Researchers observed a similar difference when participants ate dinner before 9 p.m. and when they ate after 10 p.m.

Those who were more likely to adhere to cancer prevention recommendations, as well as “morning people” also had lower risk of developing breast or prostate cancer.

» RELATED: Work the night shift? You may be at higher risk of obesity, study says

“The present study suggests that changes in timing of circadian controlled activities in sleep or diet that are less extreme than those observed in night shift work, are associated with long term health effects increasing the risk of the most prevalent cancers worldwide,” study authors concluded.

“The World Cancer Research Fund estimates that about a quarter to a third of the commonest cancers are attributable to excess body weight, physical inactivity and poor diet, making these the most common causes of cancers after smoking,” they added. “If timing is proven to be a significant modifier of these effects then it would be important to also define eating and sleep time as one of the recommendations.”

» RELATED: Here's what these Atlanta dietitians eat for dinner

Limitations

The self-reported assessment of food consumption was retrospective, which authors noted may have limitations. Another limitation of the study: small variability in meal timing, which may affect precision.

Read the full study at onlinelibrary.wiley.com.