An object is to provide a therapeutic agent for viral infections that is less likely to give rise to drug-resistant virus owing to its different mechanism of action from that of previously available anti-viral drugs. When administered to the living body, polyalkyleneimine having a certain molecular weight adsorbs to the viruses invaded the living body to prevent them from adsorbing to and invading cells, whereby inactivating the viruses and thus treating or preventing viral infections.