Background The objective of this investigation was to examine the impact of silymarin supplementation on locomotion, anxiety-related behavior, learning, and memory via several behavioral tests, such as open field, elevated plus maze, and Morris water maze tests in streptozotocin-induced diabetic rats. Methods The rats were divided into the control, diabetes, silymarin, and diabetes plus silymarin groups. On the 30th-35th days of the study, several behavioral tests were performed and blood and brain tissue samples were taken and brain-derived neurotrophic factor (BDNF) and histone deacetylase 3 (HDAC3) levels were analyzed. Results There was no significant difference in locomotor activity between the groups (p = 0.534). Spatial memory was lower (p = 0.000) but anxiety scores were higher (p = 0.005) in the diabetes group than in the control, silymarin, and diabetes plus silymarin groups. Plasma (p = 0.000) and brain tissue (p = 0.007) BDNF levels were lower in the diabetes group than in the control, silymarin, and diabetes plus silymarin groups; however, plasma (p = 0.432) and brain tissue (p = 0.321) HDAC3 levels did not significantly differ between the groups. Conclusions The findings obtained from this study suggest that silymarin supplementation could improve anxiety-related behavior, and learning and memory in diabetic rats by increasing the BDNF levels.