A method for preventing or treating an autism spectrum disorder in a subject in need thereof may include administering to the subject a composition containing a therapeutically effective amount of a benzoic acid salt and a pharmaceutically acceptable excipient thereof. The benzoic acid salt may be administered to the subject in an amount ranging from 100 mg/day to 2000 mg/day.