Retired Army Col. William T. Hamilton, 86, a veteran of both world wars and the occupation of Czechoslovakia and Germany after World War II, died of cardiac arrest Thursday at the Bethesda Naval Hospital.

He was stationed at Governor's Island, N.Y., at his retirement in 1955, when he moved to Washington. He had lived at Vinson Hall in McLean for the last four years.

Col. Hamilton was born in Mendota, Ill. He was graduated from Southwestern College in Winfield, Kans., and entered the Army in 1917, serving with the field artillery in Europe during World War I. He then transferred to the cavalry and served at various posts in this country until World War II, when he was a supply trains commander with the First Armored Division in Africa. After the war, he commanded the 6th Constabulary Regiment of the Army of Occupation in Czechoslovakia and Germany.

His decorations included the Legion of Merit and the Czechoslovakian Military Cross.

His wife, Jeane M. Hamilton, died in 1962.

Survivors include a son, retired Army Col. William T. Jr., of McLean, two grandchildren and four great-grandchildren.

The family suggests that expressions of sympathy be in the form of contributions to the Vinson Hall Infirmary Fund.