William Wiley was born on June 9, 1834, in Edgecomb, Maine, to John and Mary Wiley. His father was a tinsmith who owned $500 of personal property by 1860. Wiley grew up and attended school in Hallowell, Maine, and by 1860, he was working as a “tin plate maker.”
He enlisted in the Union army on November 8, 1861, and he mustered in as a sergeant in Company B of the 11th Maine Infantry. The regiment took part in the Peninsula campaign, the Seven Days’ Battles, the siege of Charleston, and the siege of Petersburg. He mustered out on November 18, 1864.
Wiley settled in Pittston, Maine, after the war, and he resumed his work as a “tin ware merchant.” He married Emma Reed around 1875, and they apparently had no children. By 1900, he was working as a stone dealer in Gardiner, Maine. He died of heart failure in Gardiner on December 24, 1900.