The medium-chain fatty acids in coconut oil have antimicrobial properties that can help protect against harmful microorganisms. This is especially important for skin health, as many types of skin infections, including acne, cellulitis, folliculitis and athlete's foot, are caused by bacteria or fungi
https://www.healthline.com/nutrition/coconut-oil-and-skin