Bleeding during sex.

So I was having sex with my partner (sorry if this is tmi) and he was standing on the ground and I was on the end of the bed and he went really deep into me and it hurt quite a bit. We kept going after changing positions, but when I had a shower a bit later I noticed I had been bleeding. 
What is the cause of the bleeding and how do I "heal" myself so to speak?