JEB is caused by mutations in genes responsible for the production of proteins that help anchor the epidermis to the dermis. The most commonly affected genes are LAMA3, LAMB3, and LAMC2, which encode components of laminin-332. These mutations lead to the weakening of the structures that hold the skin layers together, resulting in blister formation.