Parliamentary career
At the 2010 general election, Hart was elected as MP for Carmarthen West and South Pembrokeshire, winning with 41.1% of the vote and a majority of 3,423.
Hart is an outspoken supporter of fox hunting and the badger cull. In January 2013, Hart said the RSPCA's legal role needs more oversight given its "political and commercial activities" in a critique of the charity's role lobbying against fox hunting. He actively campaigned in May 2013 to overturn the 2004 Hunting Bill and assist the National Farmers Union of England and Wales.
Hart was re-elected as MP for Carmathen West and South Pembrokeshire at the 2015 general election with an increased vote share of 43.7% and an increased majority of 6,054.
Despite voting Remain in the 2016 European Union referendum, Hart has consistently argued that the result must be honoured and the UK must leave the EU. He helped form and lead the Brexit Delivery Group, a group of 51 MPs who argued for a negotiated exit from the EU.
At the snap 2017 general election Hart was again re-elected, with an increased vote share of 46.8% and a decreased majority of 3,110.
In June 2017 Hart faced questions over breaches of the code of conduct and was being investigated over an alleged breach of paragraph 15. He was later cleared.
In August 2018, Hart accused actress Maxine Peake of hypocrisy, for 'taking money from the NHS for work on an advertisement, whilst attacking the Government for lack of investment in the NHS'. Peake responded that the fee came from an advertising agency and would not have gone back to the NHS if she had returned it, and she had donated the fee to The Salford Foundation Trust children's charity regardless.
On 27 July 2019, in Boris Johnson's administration, he was promoted to Parliamentary Secretary at the Cabinet Office, with responsibility for policy implementation. He replaced fellow Conservative Oliver Dowden and stood down as Chairman of the Countryside Alliance.
In the run-up to the 2019 general election, Hart shared an image of a campaign placard which had been defaced during the 2017 general election. Referencing the levels of "abuse … vitriol and intimidation" to which candidates had been subjected in 2017, Hart used a Facebook post to call for high standards of conduct among candidates, a subject on which he says he has worked to find cross-party solutions since the 2017 election.
At the 2019 general election, Hart was again re-elected, with an increased vote share of 52.7% and an increased majority of 7,745. By his own account, he was one of the last cabinet ministers to support Prime Minister Johnson during the July 2022 United Kingdom government crisis which led to Johnson's resignation.
Hart has served on the Political and Constitutional Reform Select Committee, Welsh Affairs Select Committee, Environment, Food and Rural Affairs Select Committee, Digital, Culture, Media and Sport Committee, Commons Select Committee on Standards and Commons Select Committee of Privileges.
Due to the 2023 Periodic Review of Westminster constituencies, Hart's constituency of Carmarthen West and South Pembrokeshire was abolished, and replaced with Caerfyrddin. In June 2024, Hart was selected as the Conservative candidate for Caerfyrddin at the 2024 general election.
He lost the election for the new seat of Caerfyrddin, coming third with 8,825 votes (19.4%).