We prove an algebraic version of the Hamilton-Tian conjecture for all log Fano pairs. More precisely, we show that any log Fano pair admits a canonical two-step degeneration to a reduced uniformly Ding stable triple, which admits a Kähler-Ricci soliton when the ground field k = C.