בעלי חיים רבים ושונים נהנים מהפירות, אך יש להם תפקיד חשוב עבור הצמחים. פרי הוא השחלה הבוגרת של הפרח. פירות מגנים על זרעים ומסייעים בפיזור זרעים.הפריה מעוררת שינויים הורמונליים אשר יוזמים את הפיכת השחלה לפרי. בהיעדר הפריה פרחים קמלים בדרך כלל ואינם מתפתחים לפרי בצמחים נושאי זרעים המבנה המוליד תאי רבייה נקבה נקרא הביצית. הביציות מתפתחות בדרך כלל לזרעים כאשר דופן השחלה מתפתחת לכדי הקרום בפרי בשרני טיפוסי הפריקארפ הקרום מורכב משלוש שכבות.השכבה החיצונית נקראת אפיקארפ החלק האמצעי האכיל הוא המסוקארפ וכיסוי הזרע הקשה ביותר הוא האנדוקארפ. בחלק מהפירות, כמו תרמילי אפונה, הפריקארפ הוא יבש בבגרותו. בפירות אחרים כמו אפרסקים הפריקארפ נשאר בשרירי ניתן לקטלג פירות על פי האופן בו הם מתפתחים מעלה שחלה חלקי הפרחים הנושאים בביצית.פרי שנוצר מעלה שחלה אחד, או מעלי שחלה שהתמזגו או משחלה של פרח יחיד, הנקרא פרי פשוט. פרי מצטבר לעומת זאת, מתפתח מכמה עלי שחלה נפרדים של פרח בודד. פרי מרובה, לעומת זאת, נוצר מעלי שחלה רבים של הפרחים המרובים המרכיבים תפרחת.בפירות עזרים, כמו אגסים, איברים שאינם השחלה תורמים במידה רבה להיווצרות הפירות. בסך הכל, פרי בוגר מאפשר לצמח להתפשט על ידי הגנה על זרעיו מפני גורמי לחץ וסביבה בפיזורם.