Abstract Krüppel-like factor 4 (KLF4) is an evolutionarily conserved zinc finger-containing transcription factor that regulates diverse cellular processes such as cell proliferation, apoptosis, and differentiation. Our previous study showed that KLF4 expression is upregulated in skeletal muscle ontogeny during embryonic development in pigs, suggesting its importance for skeletal muscle development and muscle function. We revealed here that KLF4 plays a critical role in skeletal muscle development and regeneration. Specific knockout of KLF4 in skeletal muscle impaired muscle formation further affecting physical activity and also defected skeletal muscle regeneration. In vitro, KLF4 was highly expressed in proliferating myoblasts and early differentiated cells. KLF4 knockdown promoted myoblast proliferation and inhibited myoblast fusion, while its overexpression showed opposite results. Mechanically, in proliferating myoblasts, KLF4 inhibits myoblast proliferation through regulating cell cycle arrest protein P57 by directly targeting its promoter; while in differentiated myoblasts, KLF4 promotes myoblast fusion by transcriptionally activating Myomixer. Our study provides mechanistic information for skeletal muscle development, reduced muscle strength and impaired regeneration after injury and unveiling the mechanism of KLF4 in myogenic regulation.