Sweet potato pie has a long history in African American cuisine, dating back to slavery when sweet potatoes were one of the few ingredients readily available to enslaved people. It has since become a staple in African American communities and is often served at holiday gatherings and other special events.