Asteraceae is a large class of eudicots with complex capitulum, and little is known regarding the molecular regulation mechanism of flower development. APETALA1(AP1) belongs to the MADS-box gene family and plays a key role in plant floral induction and floral organ development. In this study, the bioinformatics and tissue-specific expression of AP1 homologous gene SvAP1-5 in Senecio vulgaris were analyzed. Based on VIGS technology, SvAP1-5 gene silencing plants were created, and SvAP1-5 was overexpressed in Solanum nigrum. The results of bioinformatics analysis showed that SvAP1-5 gene had typical MADS-box and K-box structure, and contains FUL motif and paleoAP1 motif at the C-terminal. SvAP1-5 belongs to the euFUL branch of AP1 gene. qRT-PCR results showed that SvAP1-5 was expressed in bracts, petals and carpels, and was highly expressed in carpels. Compared with the control group, SvAP1-5 gene silencing resulted in irregular petal dehiscence, increased stigma division, and carpel dysplasia. The fruit development of SvAP1-5 overexpressing S.nigrum plants was abnormal, and the hyperplastic tissue similar to fruit appeared. In summary, SvAP1-5 gene may be involved in the development of petals and carpels and plays an important role during the development of S.vulgaris.