Foley was born in Swansea, Wales, the son of John Foley and his wife Elizabeth (née Edwards) and was educated at the British Admiralty School [REF].
Foley married he married Mary Harris (died 1931) in Swansea in 1873 and together had seven sons and four daughters [REF].