Contracts from the federal government are a financial staple for plenty of industries — and it turns out that law is no exception.

During the past five years, the government has awarded $3.3 billion to more than 4,700 vendors for legal work, according to data compiled by Legal affiliate The National Law Journal. Much of the money was spent by the U.S. Department of Justice to help administer the federal program that confiscates property from criminals; for law enforcement training in countries like Afghanistan and Iraq; and for technical support in litigation, including cases involving Hurricane Katrina and the Deepwater Horizon oil spill.