Rete ridges are formed during the differentiation process of the epidermal cells. The basal layer of the epidermis, which is responsible for producing new cells, pushes downward into the dermis, creating the interdigitating pattern that characterizes rete ridges. This process is influenced by various growth factors and cytokines, which regulate the proliferation and differentiation of keratinocytes.