The son of a London jeweller who was ‘a poet much above mediocrity’,
When the Prince of Wales became Regent in 1812, Shepherd was further advanced as his solicitor-general, ‘strongly pressed by both Lord Liverpool and the chancellor’. At the end of 1813, after two others had refused the office, he became solicitor-general to the crown, whereupon a seat was found for him in Parliament. Lord Ellenborough recommended him to Lord Liverpool for the office, as being ‘more useful to government’ than any of the other persons suggested. What was needed was
a person of great legal skill and learning who is competent to advise the different departments of government, its various boards, and stand forward if necessary as their avowed and ostensible adviser. This skill exists in Serjt. Shepherd in an higher degree than in any other person, whose name I am aware of at present at the bar, and is accompanied by an excellent temper, most unassuming and gentlemanly manners and by a steady attachment to [government]. He is a very good speaker— indeed I am not aware of any person at the bar, Sir Samuel Romilly excepted, who exceeds him in this particular and has besides a weight, derived from character and general estimation which no other person at the bar would carry with him into the House of Commons.
Ellenborough admitted that ‘his infirmity of deafness renders him of course less useful in a popular assembly’. On the other hand, Shepherd, he thought, would not expect any further judicial promotion, owing to his infirmity.
Sir Samuel became an able advocate for administration in legal business. His maiden speech, 25 Apr. 1814, was a learned disquisition on the definition of ‘corruption of blood’ in law. Other subjects on which he spoke were the simple contract debts bill, which he criticized, 29 Apr.; the treatment of dubious aliens, 20, 23 May; the proceedings of the courts, which he defended against Lord Cochrane, 28 June, 5, 19 July, 23 Nov., and later against Sir John Newport, 14 Feb. 1815. Against Romilly’s motion of 28 Nov. 1814, he asserted that the continuation of the militia in peacetime was not illegal. On 14 Apr. 1815, he spoke of the difficulties of prosecuting the evaders of slave trade abolition. In April-May 1816 he answered Lord Cochrane’s charges against the conduct of Ellenborough at his trial. He voted against Catholic relief, 21 May. On 10 and 28 May he defended the aliens bill, refuting opposition’s interpretation of Magna Carta on the subject of aliens and pointing out that it was designed to curb foreign revolutionaries. He also defended, 24 Feb. 1817, and moved the second reading of the seditious meetings bill, 3 Mar., and on 26 Feb. the suspension of habeas corpus, the legal effects of which he several times explained. At this time he was so hard worked that he took temporary lodgings in Parliament Street.
Soon afterwards Shepherd was appointed attorney-general and continued that ‘conscientious discharge of professional duty’ on which, he informed his keenest critic Sir Samuel Romilly, he prided himself.
On 10 Feb. 1819 Shepherd introduced the trial by battle abolition bill. His attempts to defend the Windsor establishment, 22 Feb., were rendered inaudible by the tumult in the gallery, but he succeeded in defending the criminal code, 2 Mar. 1819, and on 13 May introduced and later defended the foreign enlistment bill. He was then appointed, on the recommendation of William Adam, chief baron of the Exchequer in Edinburgh (a move that irritated some Scots lawyers), and vacated his seat.
