Thomas P. Connelly, 74, a retired captain in the Navy Medical Corps who served in both Europe and the Pacific during World War II, died of cancer Oct. 10 in his home in Annapolis.

After retiring from active duty in 1965, Capt. Connelly was an administrator of a state hospital in Baltimore and worked for the Anne Arundel County health department before retiring a second time in the mid-1970s.

He was a native of Jersey City, N.J., and a graduate of Villanova University, Temple University medical school, and the Harvard University school of public health. He entered the Navy and received his commission in 1937.

From 1957 to 1963, he was stationed at the Annapolis Naval Hospital where he rose to the post of commanding officer. He then spent two years as commander of the Navy hospital in Corpus Christi, Tex., before retiring from active duty in 1965 and returning to this area.

Capt. Connelly was a member of St. Mary's Catholic Church in Annapolis.

Survivors include his wife, the former Dorothy Floyd of Annapolis; a son, Thomas Patrick III, also of Annapolis; four daughters, Dorothy Marie Connelly of Marion, Pa., Patricia Mahoney of Fountain Valley, Calif., and Beatrice Superczynski and Cornelia Augusta Connelly, both of Annapolis; two sisters, Constance Connelly of Jersey City, and Julia Siggins of Rockaway Point, N.Y.; two brothers, Dr. Joseph R., of Buffalo, N.Y., and Dr. M. James, of Monmouth Beach, N.J., and nine grandchildren.