Single longitudinal mode (SLM) lasers are important tools for many scientific and commercial applications. SLM operation can be achieved in distributed-feedback (DFB) lasers based on Bragg structures. Semiconductor waveguide DFB lasers are well-established devices, but their output power is limited to a few hundred milliwatts. DFB lasers have also been demonstrated in dielectric waveguides. However, in this case the output power was even lower. Here we present the first monolithic Yb:YAG DFB laser. The waveguide and the DFB structure were fabricated in the volume of an Yb:YAG crystal by ultrafast laser inscription. The DFB laser delivered 2 W of output power at a slope efficiency of 61% in SLM operation under pumping with an optically pumped semiconductor laser. This power level outperforms previously demonstrated dielectric DFB waveguide lasers by nearly an order of magnitude. Our approach paves the way for compact, robust, and highly efficient high-power SLM laser sources.