Bleeding during intercourse

so a couple day ago I was being intimate with my boyfriend and I started bleeding during sex. I bled the rest of that day and then it stopped. any ideas on what it can be?