William D. McFarlane, 85, a Democrat who represented the 13th District of Texas in the House of Representatives from 1933 to 1939, died of cancer Monday in a hospital in Graham, Tex.

During his years in Congress, he served on the old Naval Affairs and Appropriations committees. He was defeated for renomination in 1938.

Mr. McFarlane joined the Department of Justice in 1939 and was a special assistant to the attorney general and a trail attorney before retiring to Graham in 1967.

He had maintained a private law practice in Graham from 1967 until the time of his death. He was a 32nd degree mason, a Shriner, and member of the American Legion.

Mr. McFarlane was a native of Greewood, Ark., and a 1919 graduate of the University of Arkansas. He earned a law degree at the Chicago-Kent College of Law in 1921. He served in the Army during World War I.

He began practicing law in Graham in 1921. Two years later he began his legislative career after winning election to the Texas House of Representatives. He was a member of the state senate from 1927 to 1931.

Mr. McFarlane was a member of the Mount Vernon Place Methodist Church in Washington.

His first wife, the former Alma Carl, whom he married in 1923, died in 1938.

His survivors include his second wife, the former Inez Bishop, whom he married in 1945, and a daughter, Mary Pitcock, both of Graham; two other daughters Betty Morris of Albany, Ore., Barbara Staton of Alpine, N.J.; two sons, William D. Jr., of Palm Beach Fla., and Robert c., of Bethesda; 13 grandchildren and six great-grandchildren.