Ellis stood unsuccessfully as the Conservative candidate in the Park ward of Northampton Borough Council in 1995.[7] However, he was elected in 1997 as a Conservative councillor on Northamptonshire County Council, representing the Northampton Park (now Parklands) Ward, winning the seat from his Labour Party rival by 44 votes. He served until the next election in May 2001, when he did not stand again.[8] At the time of his election he was the youngest county councillor in Northamptonshire, at the age of 29.[9]
Ellis became the Conservative parliamentary candidate for Northampton North in December 2006. This followed a public vote in an open primary, which was a relatively unusual selection mechanism at the time.[10][11][12][13] Ellis was elected to Parliament in the 6 May 2010 general election gaining the seat with a majority of 1,936 and 34.1% of the vote, defeating the sitting Labour MP.[14]
In November 2010, Ellis established an All Party Group on the Queen's Diamond Jubilee, which he chaired for the following three years.[15] In this role, Ellis was responsible for organising a gift of a stained glass window of the Queen's coat of arms for the Queen from both Houses of Parliament.[16]
In July 2010, he was first elected onto the Statutory Instruments (Joint Committee) and worked on the Draft Communications Data Bill during the 2012–13 Parliamentary session.[17] Ellis was interviewed about this Bill with Jimmy Wales, co-founder of Wikipedia, on the Daily Politics programme on 11 December 2012.[18] In February 2011, Ellis was first elected onto the House of CommonsHome Affairs Select Committee.[19][20]
On 11 September 2013, Ellis introduced the Medical Innovation (No.2) Bill, a private members bill to the House of Commons.[21][22] The bill was designed to allow doctors more scope to innovate when treating cancer patients, but was criticised by a range of medical and legal bodies, patient groups and charities.[23][24] The bill was withdrawn after its first reading,[25] following an indication from the government that they would support it.[26] Although the Conservative MP Dan Poulter MP, who was Parliamentary Under Secretary of State at the Department of Health, suggested in July 2014 that the Government was keen to support it, it failed to progress through the House of Commons after the Liberal Democrats declined to support it.[27]
In March 2014, the chancellor of the exchequer, George Osborne announced in the House of Commons during the Budget Speech that a campaign Ellis had been conducting to secure extra funds to reduce potholes had succeeded and that a £200 million fund was being created to be distributed nationwide.[28] In June 2014, it was announced that £3.3 million of this fund would be allocated to Northamptonshire by the Department for Transport, with various repairs in Northampton.[29][30]
In July 2014, Ellis was successful in calling for the Parliamentary authorities to officially mark the assassination of a former member of Parliament for Northampton, Spencer Perceval, who had become Prime Minister, and who was shot and killed in the House of Commons in 1812. The Parliamentary authorities agreed to install a brass plaque in St Stephen's Hall commemorating the notable assassination and Ellis called this a "fitting tribute" to the former prime minister and historic Northampton figure.[31]
In May 2016, it emerged that Ellis was one of a number of Conservative MPs being investigated by police in the 2015 general election party spending investigation, for allegedly spending more than the legal limit on constituency election campaign expenses.[34] However, in May 2017, the Crown Prosecution Service said that while there was evidence of inaccurate spending returns, it did not "meet the test" for further action.[35]
In July 2016, Ellis was made an Assistant Whip (HM Treasury) and became Deputy Leader of the House of Commons.[36]
In February 2018, following the announcement that Northamptonshire County Council had brought in a "section 114" notice, putting it in special measures following a crises in its finances, Ellis was one of seven local MPs who released a statement arguing that the problems with the authority were down to mismanagement from the Conservative councillors who led it rather than funding cuts from the Conservative Government. They further argued that government commissioners should take over the running of the council.[41]
As Arts Minister in April 2019, Ellis placed an export bar on a 500-year-old drawing by Lucas van Leyden worth £11.4 million in a bid to keep the work of art in the United Kingdom.[42] He also placed an export bar on a 17th-century baroque cabinet by Roman maker Giacomo Herman[43] and a unique 18th-century harpsichord by Joseph Mahoon.[44]
In the House of Commons he has sat on the Statutory Instruments (Select and Joint Committees) and the Home Affairs Committee.[36] He is a member of the Conservative Friends of Israel group, and has participated in delegations to raise concerns about an agreement relating to Iran's nuclear capabilities.[45]