Cryo-EM revealed HIV-1 integrase’s distinct structures as it shifts between its two roles of DNA integration and RNA-binding.