The integumentary system comprises the skin and its appendages. It protects the body from damage and regulates temperature. The skin has three layers - epidermis, dermis and subcutaneous tissue. The epidermis contains keratinocytes, melanocytes, Langerhans cells and Merkel cells. Hair, nails, sebaceous glands and sweat glands are skin appendages. Melanin pigment determines skin color. The integumentary system acts as a barrier and plays roles in sensation, temperature regulation and vitamin D synthesis.