What can I do to make sex less painful?

I haven’t had sex with my partner yet but I want to, I don’t want to go through pain what should I do?