Introducing ultraviolet (UV) light (102, 202) to alter the environment inside a shoe destroys microorganisms or inhibits their growth. Visible light can also be used to prevent further growth. A preferred embodiment comprises an adjustable shoe tree (200) equipped with a UV germicidal light source (202) and electronic safeguards (284, 370) that prevent appreciable leakage of UV radiation outside the shoe.