What can I do to make sure my data is erased before selling my iPhone?

I'm getting rid of my iPhone. What do I have to do to make sure it's clean of all my info and other stuff?
Thanks
Re: Erasing iPhone data

Welcome to iMore! You'll want to erase all of the data on your phone, deactivate Find My iPhone, and a few other things. Here's an Apple Support article to walk you through the necessary steps.

Let us know if you have any more questions!

Original thread: https://forums.imore.com/threads/what-can-i-do-to-make-sure-my-data-is-erased-before-selling-my-iphone.346063/