PURPOSE: A pharmaceutical composition for preventing and treating skin infection is provided to prevent side effect and to relieve itching. CONSTITUTION: A pharmaceutical composition for preventing and treating skin infection contains 0.01-10.0 weight parts of terbinafine HCl and 0.1-200 weight parts of chlorhexidine gluconic acid. The composition further contains 0.1-10 weight parts of tea tree oil and 0.1-10.0 weight part of oat extract. The composition also contains phytosphingosine or salt thereof, ceramide, or ceramide derivative. The cosmetic composition is used in the form of a lotion, cream, shampoo, spray, or gel.본 발명은 피부 감염증 치료 효과가 우수하고 부작용이 적은 피부 감염의 예방 및 치료용 조성물을 제공한다. 본 발명의 피부 감염의 예방 및 치료용 약학적 조성물 또는 화장료 조성물은 염산 테르비나핀 및 클로르헥시딘 글루콘산염을 포함한다.