Onion juice can help to treat dandruff. Apply the juice to your scalp and leave it on for about 30 minutes before shampooing.