Solanum nigrum, which belongs to the Solanaceae family, is an essential plant for food and medicine. It has many important secondary compounds, including glycoproteins, glycoalkaloids, polyphenolics, and anthocyanin‐rich purple berries, as well as many ideal characteristics such as self‐fertilization, a short life cycle and a small genome size that make it a potential model plant for the study of secondary metabolism and fruit development. In this study, we report a highly efficient and convenient tissue culture, transformation and genome editing method for S. nigrum using leaf segments after 8 weeks of tissue culture, with a required period from transformation initiation to harvest of about 3.5 months. Our results also show multi‐shoot regeneration per leaf segment and a 100% shoot regeneration efficiency in a shoot regeneration medium. Moreover, over 82% of kanamycin‐resistant plants exhibited strong green fluorescence marker protein expression, with genetic integration confirmed by PCR results and green fluorescence protein expression in their T1 progeny. Furthermore, we successfully applied this transformation method to achieve an average of 83% genome editing efficiency of SnMYB1, a gene involved in regulating the anthocyanin biosynthetic pathway of S. nigrum in response to missing nutrients. Taken together, the combination of highly efficient tissue culture, transformation and genome editing systems can provide a powerful platform for supporting fundamental research on the molecular mechanisms of secondary metabolism, fruit development, and production of important compounds by biotechnology.