A peptide having antibacterial or anti-inflammatory activity and a pharmaceutical composition containing the same as an active ingredient are described. Also, a peptide having antibacterial or anti-inflammatory activity against dental bacteria, including periodontal pathogens, and bacteria causing atopic dermatitis, and a pharmaceutical composition containing the peptide as an active ingredient are described. The inventive peptide having antibacterial or anti-inflammatory activity can be used for the treatment of both dental infectious diseases, including periodontitis, and inflammations, including arthritis.