Mesoporous Santa Barbara amorphous (SBA-15) was functionalized through co-condensation using tetraethoxy orthosilicate and 3-aminopropyltriethoxysilane in the presence of the copolymer Pluronic P-123 (EO20PO70EO20) as a pore-directing agent under an acidic condition. A comprehensive study of the sodium valproate (SV) loading and release was carried out on SBA-15 and functionalized SBA-15. The functionalized and drug loaded mesoporous materials were comprehensively characterized using X-ray diffraction, nitrogen adsorption isotherms, FTIR, TGA, SEM, and TEM techniques. The Box-Behnken design was applied to optimize the variables of drug loading time, ultrasound irradiation time, and carrier dose. Results indicated that the COO