Pain while urinating

So I've started getting really bad pain while urinating. I'll start to pee but when I'm almost done i get a sharp pain then the muscles down there tighten. When I try to relax there's still pain and a little bit of blood. Does anyone know what this is or had experienced this before?? 
Or what could have caused it??