The process of replacing an existing mortgage with a new mortgage is commonly known as refinancing.
Either with the same lender or a different one. In Canada, refinancing outside of the renewal date may trigger a prepayment penalty. This penalty can be substantial.