 Williams was educated at Eton College and started his career as a schoolmaster at Ipswich School.On the outbreak of the Crimean War he joined the Royal South Lincoln Militia, then the 96th Regiment of Foot and finally the 41st (Welsh) Regiment of Foot, but was too late and never got to fight at Sevastopol.Instead, he spent most of his service in Dublin.