Tax-exempt organizations play a major role in the U.S. economy with an estimated $3 trillion in assets and $1.4 trillion in revenue, and law firms are lining up to capture a share of the bounty.

Firms such as West Palm Beach, Fla.-based Gunster, Yoakley & Stewart are creating practice groups dedicated to addressing the unique legal needs of nonprofits.