The skin develops from two germ layers - the epidermis derives from surface ectoderm and the dermis derives from mesodermal mesenchyme. The epidermis forms from proliferating surface ectodermal cells that generate a basal layer and periderm. The periderm desquamates and is replaced by cells from the basal layer. The basal layer stratifies to form the epidermis and develops ridges determined genetically. The dermis develops from mesenchyme and projects ridges into the epidermis. Congenital skin anomalies can affect development, such as ectodermal dysplasia impacting ectodermal tissues.