Chloroplasts in photosynthetic eukaryotes originated from a cyanobacterial endosymbiosis far more than 1 billion years ago1-3. Due to this ancientness, it remains unclear how this evolutionary process proceeded. To unveil this mystery, we analysed the whole genome sequence of a photosynthetic rhizarian amoeba4, Paulinella micropora5,6, which has a chloroplast-like organelle that originated from another cyanobacterial endosymbiosis7-10 about 0.1 billion years ago11. Here we show that the predacious amoeba that engulfed cyanobacteria evolved into a photosynthetic organism very quickly in the evolutionary time scale, probably aided by the drastic genome reorganization activated by large DNA virus. In the endosymbiotic evolution of eukaryotic cells, gene transfer from the endosymbiont genome to the host nucleus is essential for the evolving host cell to control the endosymbiont-derived organelle12. In P. micropora, we found that the gene transfer from the free-living and endosymbiotic bacteria to the amoeba nucleus was rapidly activated but both simultaneously ceased within the initiation period of the endosymbiotic evolution, suggesting that the genome reorganization drastically proceeded and completed. During this period, large DNA virus appeared to have infected the amoeba, followed by the rapid amplification and diversification of virus-related genes. These findings led us to re-examine the conventional endosymbiotic evolutionary scenario that exclusively deals with the host and the symbiont, and to extend it by incorporating a third critical player, large DNA virus, which activates the drastic gene transfer and genome reorganization between them. This Paulinella version of the evolutionary hypothesis deserves further testing of its generality in evolutionary systems and could shed light on the unknown roles of large DNA viruses13 in the evolution of terrestrial life.