The present invention discloses a class of quinine compounds and pharmaceutically acceptable salts, solvates, prodrugs or optical isomers thereof. Also disclosed in the present invention are that the above compounds have a selective antagonistic effect on the receptor subtypes of M1 and M3, but have no significant effect on M2 receptor subtype, and the above compounds are characterized by rapid action, long-lasting efficacy, and low toxic and side-effects when used to treat rhinitis, post-cold rhinitis, chronic trachitis, airway hyperresponsiveness, asthma, chronic obstructive pulmonary diseases, cough, urinary incontinence, frequent urination, unstable bladder syndrome, bladder spasms, bladder inflammation and gastrointestinal diseases such as irritable bowel syndrome, spastic colitis, as well as duodenal and gastric ulcers.