The present invention relates to a novel heterocyclic compound or a pharmaceutically acceptable salt or solvate thereof, and a pharmaceutical composition or a cosmetic composition containing the same as an effective ingredient is very useful for the treatment or prevention of skin diseases.본 발명은 신규한 헤테로고리 화합물 또는 이들의 약학적으로 허용되는 염 및 용매화물에 관한 것으로, 이를 유효성분으로 함유하는 약학조성물 또는 화장품 조성물은 피부질환의 치료 또는 예방에 매우 유용하다.