Paramecium caudatum acquires heat-shock resistance in ciliary movement by infection with the endonuclear symbiotic bacterium Holospora obtusa.