Disclosed is a method for producing a 2-aminopyridine compound of formula (I) by acylating a compound represented by Formula (A) by using an acylation agent, and further alkylating a 1-position nitrogen atom of the compound represented by Formula (B) in the presence of a base. The compound is useful as a pest controlling agent.