For a hair mask or treatment, apply coconut oil to your hair while it’s still damp. Leave it on for up to 30 minutes before washing it out with shampoo and conditioner.