Marvin L. Shirley, 84, a former Department of Labor official in Washington and Philadelphia, died at Georgetown University Hospital Tuesday following a stroke.

Mr. Shirley began his government service with the Department of Commerce in 1930. He later joined the old Social Security Board and then moved to the bureau of unemployment compensation in the Labor Department in the mid-1940s.

He was assigned to a Labor Department refugee relief program in Athens, Greece, in the early 1950s. In 1958, he was transferred to the Philadelphia office as deputy regional director. He retired in 1964.

In 1967 and 1968, he carried out a special assignment for the Agency for International Development in Uruguay, drafting a model labor relations law for that country.

Mr. Shirley had gone to Uruguay to live with his daughter, Doris S. Topping, whose husband, John, was a Foreign Service officer. He later lived with them in Montreal. The family returned to Washington in 1973.

Mr. Shirley was born in Washington and grew up here and in Frederick, Md. He worked for the Southern Railway System in Washington and then for a paper exporting company in New York before beginning his government career.

His wife, Bertha, died in 1950.

Survivors include his daughter, of the home in Washington, and three grandchildren.