Why does it hurt for me to have sex

when we were having sex I kept feeling like he was going too far deep and hitting the back of something in me. it really hurt and his penis isnt that large