After his return to Britain he settled in London, where he entered public service, as alderman for Cheap Ward in the City of London and from 1891 until the dissolution in 1906 as Liberal member of parliament for Paisley [REF].
Dunn was created a baronet in 1895,[REF] becoming Sir William Dunn of Lakenheath, after his residence in the country.