This study compared the compositional changes in mushrooms exposed to sunlight with those occurring after commercial ultraviolet (UV) light processing. Button mushrooms (75 kg) were processed in the presence or absence of UVB light; a third group was exposed to direct sunlight. Mushroom composition was evaluated using chemical analyses. Vitamin D concentrations were 5, 410, and 374 μg/100 g (dw) in control, UVB, and sunlight groups, respectively. On a dry weight basis, no significant changes in vitamin C, folate, vitamins B(6), vitamin B(5), riboflavin, niacin, amino acids, fatty acids, ergosterol, or agaritine were observed following UVB processing. Sunlight exposure resulted in a 26% loss of riboflavin, evidence of folate oxidation, and unexplained increases in ergosterol (9.5%). It was concluded that compositional effects of UVB light are limited to changes in vitamin D and show no detrimental changes relative to natural sunlight exposure and, therefore, provide important information relevant to the suitability and safety of UVB light technology for vitamin D enhanced mushrooms.