Melatonin can be used for dogs with sleep issues, especially those related to anxiety. Consult your vet before giving melatonin to your dog to determine the appropriate dosage. Watch for potential side effects, and never use human melatonin for dogs.