Vitamin D is obtained by eating certain foods, taking supplements and through sunlight exposure. It is essential for maintaining healthy bones, muscles, nerves and immunity.