Lawyers advise, research, and collect evidence or information, draft legal documents such as contracts, divorces, or real estate transactions, and defend or prosecute in court. Lawyers can specialize in a number of areas, such as corporate, family, bankruptcy, or environmental law.