The process by which blood forms clots.