The present invention provides peptides for inhibiting tumor, which are fragments of the N terminus of endostatin, having 45 or less amino acid residues, and which at least contain amino acid residues 1-20 of the N terminus, wherein amino acid residues at positions 2 to 18 of the N terminus of endostatin are shown in the disclosure, and the peptides optionally contain mutations at positions 17 and 20-22 as disclosed in the disclosure. The present invention also relates to the coding sequences of the peptides, expression vectors containing the coding sequence, pharmaceutical compositions comprising the peptide, and use of the peptide and pharmaceutical composition in the inhibition, prevention or treatment of tumor.