Painful sex

While having sex with my boyfriend it's really painful does anyone know why this is?