Provided is a pharmaceutical composition for preventing or treating onychomycosis, which is capable of softening dead skin cells and retaining moisture. The present invention further relates to a production method thereof. To this end, the composition of the present invention is produced in a hydrogel form comprising urea, fumaric acid, 1,3-butylene glycol, a gel-forming polymer, a cross-linking agent, and 45-60 wt% of water.COPYRIGHT KIPO 2016본 발명은 우레아 푸마르산 1,3-부틸렌 글리콜 겔-형성 중합체 가교화제 및 45 ∼ 60 중량%의 물을 포함하는 하이드로겔 형태의, 각질연화 및 수분유지능을 갖는 조갑진균증의 예방 또는 치료용 약학 조성물 및 이의 제조방법을 제공한다.