Vitamin D is mainly produced in our skin under the influence of sunlight. Then the liver and kidneys must convert it into the usable form. The production of vitamin D depends on various factors, such as the climate in which we live, the degree of exposure to sunlight, the use of sun creams with a UV filter, skin pigmentation, the functioning of the liver and kidneys and our age.