The formation of a blood clot in a deep vein, typically in the legs, which can be dangerous if the clot breaks loose and travels to the lungs.