Hurtful sex

Almost every time I have sex it hurts so bad that I have to stop right in the middle of it, why and how can I fix it?