Blood in urine and pain while peeing

I feel the need to pee but when I go it's like I can't when I final can its a little and it hurts so bad and there is blood (just a bit) I feel like something is trying to come out and I'm in pain any ideas what might be causing this