William Porter (1805–1880) was attorney-general of the Cape Colony and a drafter of its first constitution in 1854.
William Porter was born in Northern Ireland (Derry) on 15 September 1805 into a family with strong liberal convictions. He read law and was called to the Bar of Ireland in 1831.
Political manoeuvrings in Britain in the 1830s led to an interim of liberal control in London, and the new government swiftly replaced conservative civil servants with known liberals throughout the Empire. Porter's family's liberal convictions, as well as his own, put him in line for such an opportunity, and in 1839 he was appointed as Attorney General of the Cape of Good Hope.
Porter arrived in the Cape Colony, bringing what he called "an unspeakable hatred of oppression of every kind", and set about promoting equal rights and justice for all, regardless of race or class.
The prominence of his position in the Cape helped to bring liberal principles into the mainstream in the conservative colony. Several progressive local leaders such as Saul Solomon, John Molteno and John Fairbairn soon surfaced and, taking advantage of their beliefs' new acceptability, began to take control of the Cape's politics.
When the Cape was granted its first Parliament in 1854, Porter was one of the primary drafters of the infant State's constitution. The constitution prohibited discrimination on the basis of race and made provision for a franchise system where whites and blacks voted on equal terms and without distinction. This was the birth of the uniquely multiracial "Cape Qualified Franchise".
When he retired from his position as attorney-general in 1865, Porter entered politics, and was elected to the parliament which he had assisted in creating. Here the local leader John Molteno, who shared Porter's political views, had achieved a degree of parliamentary control and was using this electoral base to push for the next stage in independence from Britain, a locally-accountable executive, or "Responsible Government".