Has neuroprotective effects excellent, neurogenesis (playback) promoting action, a pharmaceutical effect of cognitive function improving action, etc., have low toxicity Preferably, the present invention provides the central transition is highly, the aminopyridine derivative novel . That is, the formula (I): Wherein, a monocyclic aromatic hydrocarbon ring, ring A ring B may further have a substituent ring D is a monocyclic aromatic hydrocarbon ring such as L is a methylene group or bond, X is, -NRa- etc Ra represents a hydrogen atom or the like n is 2 or 1 R 1 ~R 3 is a hydrogen atom or the like. The ring D and ring A, a well, the ring A-L- formula (I) is bonded to X and also form a substituted condensed ring and further condensed, which may have a substituent may be. However, when a benzene, L is a bond and ring D pyrazole good be substituted ring A is optionally substituted. I will provide a compound or a salt thereof represented by the formula.本発明は、優れた神経保護作用、神経新生(再生)促進作用、認知機能改善作用等の医薬作用を有し、好ましくは毒性が低く、中枢移行性が高い、新規なアミノピリジン誘導体を提供する。すなわち、式(I):〔式中、環Aは、単環式芳香族炭化水素環等;環Bは、さらに置換基を有していてもよい;環Dは、単環式芳香族炭化水素環等;Lは、結合、またはメチレン基等;Xは、-NRa-等;Raは、水素原子等;nは、1または2;R1~R3は、それぞれ水素原子等。なお、環Aおよび環Dは、さらに縮合して、置換基を有していてもよい縮合環を形成していてもよく、式(I)中の環A-L-はXに結合していてもよい。但し、環Aが置換されてもよいピラゾールかつ環Dが置換されてもよいベンゼンのときは、Lは結合である。〕で表される化合物またはその塩を提供する。