Orychophragmus violaceus (O. violaceus) is a kind of edible wild herb in north China and its seeds have medical potential, however, the effect of O. violaceus seeds on liver injury and the mechanism of action remains poorly understood. Thus, the purpose of the present study is to investigate the effect of O. violaceus seeds on liver injury and further explore the molecular mechanism of the beneficial effects using aqueous extract from the seeds of O. violaceus (AEOV). Mice were orally administrated with saline, AEOV, and biphenyldicarboxylate for 4 days, and were then injected subcutaneously with 0.1% carbon tetrachloride (CCl4) dissolved in corn oil. Sixteen hours later, mice were sacrificed and blood samples were collected. Then, the serum was separated and used for biochemical assay. Livers were excised and were routinely processed for histological examinations. Enzyme activities and protein levels in liver homogenates were detected using commercial kits or by western blot analysis. Additionally, the hepatoprotective effect of AEOV in vitro was evaluated using epigoitrin, the major alkaloid compound isolated from AEOV. We found that AEOV attenuated liver injury induced by CCl4 as evidenced by decreased levels of alanine aminotransferase (ALT) and aminotransferase (AST) in serum, improvement of liver histopathological changes, and substantial attenuation of oxidative stress and inflammation via regulation of nuclear factor-erythroid 2-related factor-2 (Nrf2) and nuclear factor κB (NFκB) pathways. These effects of AEOV were comparable to that of biphenyldicarboxylate which was commonly used as a hepatoprotective reference. Moreover, pretreatment of HepG2 cells with epigoitrin improved cell viability, decreased lactate dehydrogenase (LDH) and malondialdehyde (MDA) levels, increased superoxide dismutase (SOD) and glutathione peroxidase (GSH-Px) activity, attenuated the NFκB pathway, and elevated the Nrf2 pathway after exposure to H2O2. These results suggest that AEOV could effectively prevent CCl4-induced liver injury in mice via regulating the Nrf2 and NFκB pathways, and reveal the cytoprotective effects of epigoitrin against H2O2-induced oxidative stress in HepG2 cells.