it hurts

every time I have some sort of deep penetrative sex it hurts if he goes in fast, it’s like he’s hit some sort of wall but if he goes in and out slowly the pain gradually goes away and it then become more pleasurable, does anyone know what it is?