Gary L. Brooks, a lawyer who was general counsel for the National Archives and Records Administration for nearly 30 years, died Oct. 9 at his home in Rockville. He was 67.

The cause was prostate cancer, a daughter, Courtney Brooks, said.

Mr. Brooks began his law career in 1972 at the former U.S. Court of Claims. He worked at the General Services Administration from 1974 to 1976 and joined a Washington law firm before beginning his 29-year career at the National Archives and Records Administration in 1980.

He played a leading role in lawsuits that resulted in the acquisition of many of President Richard M. Nixon’s White House tapes and other presidential materials for the National Archives. Mr. Brooks retired in 2009.

Gary Lee Brooks, a native of Peoria, Ill., was a 1968 graduate of Dartmouth College and a 1972 graduate of Fordham Law School in New York.

Mr. Brooks, a longtime resident of Rockville, played on softball teams for many years and participated in other sports.

Survivors include his wife of 42 years, Nancy Freeman Brooks of Rockville; two daughters, Kristin Toohey of Germantown, Md., and Courtney Brooks of Weston, Conn.; his mother, Ruth Brooks of Addison, Ill.; two brothers; and two grandsons.

— Victoria St. Martin