We demonstrated a Q-switched laser with fundamental mode at 1064 nm using BaB2O4 electro-optic Q-switching. High-efficiency operation of Q-switched laser with dynamic to static ratio of 91.4% was realized. When the absorbed pump power was 6.59 W, the maximum average output power of 2.88 W was achieved with a repetition rate of 50 kHz. The optical conversion efficiency and slope efficiency were 43.7% and 55.5%, respectively. The minimum pulse width of 17.8 ns was achieved. Meanwhile, the pulse energy and peak power were and 3.2 kW, respectively. To the best of our knowledge, this study is the first to demonstrate about the electro-optically Q-switched laser in crystal.