William G. Liekweg, 64, a retired assistant inspector general of the Department of Housing and Urban Development, died at Alexandria Hospital Thursday following a heart attack. d

Mr. Liekweg, who was born in Washington, graduated from Gonzaga College High School and Georgetown University. He studied accounting at Strayer Business College.

After World War II service as an officer in the Navy, Mr. Liekweg worked briefly for the General Accounting Office. From 1946 to 1948, he worked for what is now Trans World Airlines. In 1948, he went to work for the Navy Department and during the Korean conflict worked for the Wage Stabilization Board. From 1953 to 1954, he was employed by the Mutual Life Insurance Company.

In 1954, Mr. Liekweg joined the Federal Housing Administration, a predecessor of HUD. At the time of his retirement in 1979, he was assistant inspector general of that department.

Mr. Liekweg, who lived in Alexandria, was a member of the Blessed Sacrament Catholic Church there.

Survivors include his wife, Catherine B. Liekweg, to whom he was married for 38 years, of Alexandria; three sons, Dr. William G. Jr., of Grand Blanc, Mich., Stephen E., of Clifton, N.J., and Richard J., of Alexandria; three daughters, Catherine L. Conlon of Mechanicsville, Md., Jane Van Aelstyn of La Crosse, Wis., and Paula M. Liekweg of Alexandria; one brother, Charles B. Liekweg Jr. of Bethesda, and nine grandchildren.

The family suggests that expressions of sympathy be in the form of contributions to the Arthritis Foundation of the District of Columbia.