This paper aims is to study the interaction of two drugs including pregabalin and olanzapine with DNA. For this purpose, density functional theory calculations and docking were used. The structure of pregabalin and olanzapine using B3Lyp theory level and the basis set 6-311 G(d,p) was optimized. Highest occupied molecular orbital (HOMO) and lowest unoccupied molecular orbital (LUMO) calculated for each drugs. The obtained results showed that olanzapine is more reactive than pregabalin. Docking of drugs with DNA was performed and the results showed that binding affinity of olanzapine is higher than pregabalin. Also, the graphical results revealed that olanzapine interact with DNA via 5-terminal major groove of DNA, whereas pregabalin interact with DNA via 3- termind major groove.