An object of the present invention is to find a protein expressed in a variety of cells and functioning as a receptor for herpesvirus and provide a preventive or remedy for herpesvirus infections capable of inhibiting binding of the receptor to herpesvirus and thereby preventing entry of the virus to cells.The present invention provides a pharmaceutical composition for preventing or treating herpesvirus infections, which composition contains a substance inhibiting the binding of glycoprotein B to a non-muscle myosin heavy chain IIA or a non-muscle myosin heavy chain.