William Wirt was a lawyer of uncommon ability, who participated in many of the most important Supreme Court cases of his day. As the longest serving United States attorney general to date (1817–29), having served under Presidents James Monroe and John Quincy Adams, he transformed this cabinet position into one of sizable influence.