TMI. What is this?

Ive been on my period for 9 days at first it was really light bleeding and now for the past 2 dsys I've had major cramps and ive been passing clots. This just came out of me though and it was very painful what is it?