The present invention provides restore or enhance the function of saltant type and/or wild type CFTR to treat the pyridine and pyrazines derivatives of cystic fibrosis, primary ciliary dyskinesia, chronic bronchitis, Chronic Obstructive Pulmonary Disease, asthma, respiratory tract infection, lung cancer, the dry disease of the mouth universe and the dry property keratoconjunctivitis of the universe or constipation (IBS, IBD, opioid induce). It further include the pharmaceutical composition comprising this analog derivative.本發明提供了恢復或增強突變型和/或野生型CFTR的功能以治療囊性纖維化、原發性睫運動障礙、慢性支氣管炎、慢性阻塞性肺疾病、哮喘、呼吸道感染、肺癌、口乾燥症和乾燥性角膜結膜炎或便秘(IBS、IBD、阿片樣物質誘導的)的吡啶和吡嗪衍生物。還包括包含這類衍生物的藥物組合物。