Thornely was born on 1 April 1781 in Lord Street, Liverpool, where his father traded as a woollen draper. His parents were both members of well-established Presbyterian families, his father being related to the Thornelys of Hyde in Cheshire and his mother to the Mather family of Toxteth Park. He was schooled for some time by the minister of Hyde Chapel, Bristowe Cooper, and later apprenticed to the merchant firm of Rathbone, Hughes and Duncan, operated in Liverpool by the William Rathbone family. He became a merchant in his own right in 1802, trading mainly with the United States, when he joined the firm of Martin, Hope and Thornely as junior partner. Between 1805–1810, he was based in New York as the firm's resident partner and he later made a further three visits to the US, the last being in 1842 with his nephew. On his return to Liverpool, Thornely retained his involvement in commerce, including with the East Indies, and according to an obituary "took much interest in public affairs and in all matters connected with civil, religious and commercial freedom". In 1811, he was among the merchants who condemned the British government's reaction to Napoleon's attempt at an economic blockade of Britain, known as the Continental System, on the grounds that their retaliation was damaging trade with the US. He helped to present evidence to a parliamentary committee regarding the matter and the Orders-in-Council were eventually rescinded, although by that time the War of 1812 with the US had begun. He was a supporter of proposals which eventually were encapsulated in the 1832 Reform Act and of repeal of the Corn Laws, as well as becoming a senior figure in the Liverpool East India Association, which lobbied on behalf of merchants. When the partnership of Martin, Hope and Thornely was dissolved in the 1810s, Thornely joined with his brother to form the firm of Thomas and J. D. Thornely, with which he remained connected until retirement in 1839. He has been described as being a "sugar refiner" Thornely was a member and official of the Renshaw Street Unitarian Chapel. He was a vice-president of both Manchester New College and the British and Foreign Unitarian Association, and a regular chapel-goer even when away from his home town of Liverpool. He took an interest in the town throughout his life and was involved in numerous of its institutions, being one of the people involved from the outset of the Liverpool Athenaeum from 1798, and of the Liverpool Literary and Philosophical Society. He was a co-founder of the Liverpool Mechanics' and Apprentices' Library in 1824, as well as being a supporter of the Liverpool Institute from its origination.
Politics
In 1831, Thornely stood in a parliamentary by-election for the Liverpool constituency, losing to Viscount Sandon after campaigning for full acceptance of the proposals that later became the Reform Act of 1832. He lost again in the 1832 election, subsequent to which there were attempts to resolve issues of corruption that had blighted elections in the borough, both municipal and parliamentary, since 1823. Thornely refused to stand as a candidate in Liverpool for the 1835 general election because, according to a report in the Liverpool Mercury, "he felt it was useless to contend with the freemen of Liverpool". He was instead elected as the Member of Parliament for Wolverhampton, together with Charles Pelham Villiers, who noted that the constituency was "one of the new boroughs and, as yet, uncorrupted". Thornely, who had considerable experience in local politics, and the somewhat younger Villiers were re-elected at the next five general elections, became mutual friends and worked closely together. According to biographer Roger Swift, both were "committed Reformers and Free Traders", with Thornely's sagacity sometimes tempering Villiers' impetuous tendencies. At only one of those elections was he opposed. Aside from his involvement in reform causes such as supporting free trade and repeal of the Corn Laws, Thornely played a significant, if somewhat unobtrusive, role in the passing of the Dissenters' Chapels Act of 1844, which rectified a legal anomaly that had arisen following the recognition by the 1813 Doctrine of the Trinity Act of the right of Nonconformists to practise their religion. The 1844 Act recognised the property rights of Unitarians to the places of worship that they had used for 25 or more years previously. Thornely, who was among the most assiduous attendees in the House of Commons, stood down from the House of Commons at the 1859 general election, being by then aged 78 and suffering from poor health. The Wolverhampton Chronicle noted at his death on 4 May 1862 that he was "Not of brilliant talent, yet his various knowledge on all subjects connected with the extensive commerce of the empire seldom left him at a loss in the House of Commons how to make his opinions respected." Another obituary noted that Perhaps Thornely's last political act had been to arrange for his interment in his family's vault at the Renshaw Street burial ground. The cemetery had been closed under the provisions of sanitary regulations but he was eventually successful in his appeal to the prime minister, Lord Palmerston, to permit, under strict conditions, the burial of people closely related to those already interred. Palmerston himself had been potentially excluded from interment in a family vault under the same regulations.