Regression testing is used to ensure that changes or updates to the software do not introduce new errors or defects. This type of testing involves re-running previously successful tests to ensure that the changes have not affected the existing functionality of the software.