Vitamin D, which is produced by the body through exposure to sunshine, helps the body control calcium and phosphate levels.
It can also be obtained from food sources such as fatty fish and egg yolks.
Previous studies have linked vitamin D deficiency with a host of health problems including cardiovascular disease, cognitive impairment, autoimmune conditions and cancer.
In countries with low levels of sunlight, it is difficult to obtain enough vitamin D from food alone.
Researchers from the University of Warwick and University Hospital Coventry and Warwickshire in the UK, investigated the link between vitamin D and bladder cancer risk.
More From This Section
In a separate experiment, the researchers then looked at the cells that line the bladder, known as transitional epithelial cells, and found that these cells are able to activate and respond to vitamin D, which in turn can stimulate an immune response.
According to lead author of the study Rosemary Bland, this is important because the immune system may have a role in cancer prevention by identifying abnormal cells before they develop into cancer.
"As vitamin D is cheap and safe, its potential use in cancer prevention is exciting and could potentially impact on the lives of many people," she said.