Regression testing is performed after any modification or updates are made to the software to ensure that the existing functionalities still work as expected.