hurting during sex?

me and my bf had sex last night and we had been doing it for over an hour and as it got closer to the end, my area started to hurt almost as if i had to poop or something .. what does this mean ??