WHO-recommended second-line antiretroviral therapy (ART) of a pharmacologically enhanced (boosted) protease inhibitor plus nucleoside or nucleotide reverse transcriptase inhibitors (NtRTIs) might be compromised by resistance. Results of the 96 week SECOND-LINE randomised trial showed that NtRTI-sparing ART with ritonavir-boosted lopinavir and raltegravir (raltegravir-group) provided non-inferior efficacy to ritonavir-boosted lopinavir and two or three NtRTIs (NtRTI-group) in participants with virological failure composed of a first-line regimen of a non-nucleoside reverse transcriptase inhibitor plus two NtRTIs. We report the relation of baseline virological resistance with virological failure and emergent resistance on study.