The present invention relates to the field of medicine, provided herein are novel nitrogenous heterocyclic compounds, their preparation methods and their uses as drugs, especially for treatment and prevention of tissue fibrosis. Also provided herein are pharmaceutically acceptable compositions comprising the nitrogenous heterocyclic compounds and the uses of the compositions in the treatment of human or animal tissue fibrosis, especially for human or animal renal interstitial fibrosis, glomerular sclerosis, liver fibrosis, pulmonary fibrosis, peritoneal fibrosis, myocardial fibrosis, dermatofibrosis, postsurgical adhesion, benign prostatic hyperplasia, skeletal muscle fibrosis, scleroderma, multiple sclerosis, pancreatic fibrosis, cirrhosis, myosarcoma, neurofibroma, pulmonary interstitial fibrosis, diabetic nephropathy, alzheimer disease or vascular fibrosis.