The present invention relates to a peptide having antimicrobial or anti-inflammatory activity and to a pharmaceutical composition containing the same as an active ingredient. More particularly, the present invention relates to a peptide having antimicrobial or anti-inflammatory activity against dental infection bacteria including periodontal pathogens and bacteria which cause atopic dermatitis, and to a pharmaceutical composition containing the peptide as an active ingredient. The peptide according to the present invention, which has antimicrobial or anti-inflammatory activity, can be used for treating dental infections such as periodontitis and peri-implantitis, and for treating inflammations such as atopic dermatitis, psoriasis and arthritis.