The present invention provides a nitrogen-containing compound represented by formula (I 1 ) (in formula (I 1 ), R 0 represents a nitro group or the like, Z represents an optionally substituted aryl group or the like, R 3 represents a hydrogen atom or the like, Y represents a nitro group or the like, n represents an integer of 0 to 3, D represents an optionally substituted 5-membered to 8-membered hydrocarbon ring group or heterocyclic group having or not having a substituent other than substituent X, X represents a group represented by formula (II-1) (in formula (II-1), R 1 and R 2 respectively and independently represent a hydrogen atom or the like), A represents a carbon atom or the like, n1 represents an integer of 0 to 2) or a salt thereof, and an insecticide, miticide, sanitary insect pest control agent, or harmful organism control agent including as an active ingredient thereof the nitrogen-containing compound or the salt thereof.