I passed this- what is it? Blood clot?

Gross photo warning.

My period came a couple days late, with some of the absolute worst pain I’ve experienced with a period (back pain, cramps, sore breasts etc.) I have passed blood clots frequently, but nothing this big before (size is hard to distinguish in photo.) Any idea what causes this? How to prevent heavier periods? I am planning to follow up with my doctor.