Simply put, you take out a new loan to pay off old debt, then pay back the new debt according to agreed-upon terms.