The present invention relates to a novel compound, a pharmaceutically acceptable salt or an optical isomer thereof, a method for preparing them, and a pharmaceutical composition for preventing or treating viral diseases containing them as active ingredients. The novel compounds according to the present invention not only have low cytotoxicity, but also have excellent antiviral activity against picornaviruses including coxsackieviruses, enteroviruses, echoviruses, polioviruses and rhinoviruses, therefore It can be used as a pharmaceutical composition for the prevention or treatment of viral diseases such as poliomyelitis, acute hemorrhagic conjunctivitis, viral meningitis, hand, foot and mouth disease, blister disease, hepatitis A, myositis, Myocarditis, pancreatitis, diabetes mellitus, epidemic myalgia, encephalitis, common cold, herpetic angina, foot-and-mouth disease, asthma, chronic obstructive pulmonary disease, pneumonia, sinusitis, or otitis media.