Keratin has two main functions: to adhere cells to each other and to form a protective layer on the outside of the skin. In epithelial cells, keratin proteins inside the cell attach to proteins called desmosomes on the surface. The desmosomes act as anchors, holding the cells together.