Some attorneys represent individual citizens in their legal dealings with the government, including both transactional and litigation matters. Common issues people find themselves in with the government include real estate transactions, construction projects, building licenses, and business licenses, as well as civil matters where the government has caused damages to an individual.
Other attorneys perform legal work on behalf of the government. The government, though a sovereign entity, still needs individuals to perform legal work on its behalf. Many cities and other municipalities actually have attorneys who are designated as the "city attorney." Furthermore, governmental agencies, such as the IRS, or the Department of Homeland Defense, also have their own attorneys who work directly in their office.