Miraj became a councillor in Ruislip Manor in Hillingdon in 1998 aged 23, when he was working as a part-time DJ. He was a councillor until 2002. In 2001 after the September 11 attacks, Miraj spoke at the 2001 Conservative Party conference in favour of military action in Afghanistan, saying "As a British Muslim I find the attacks even more difficult to bear". In 2003 when he was in Conservative Future he supported ID cards being introduced to prevent benefit fraud, but was opposed to random checks. Miraj was a foreign affairs advisor to the Conservative Party from 2001–3; he opposed the 2003 Iraq War, against his party line. He appeared on a Newsnight debate in 2006 about the Middle East during the Lebanon war.
Parliamentary candidate
Miraj was the candidate for Aberavon in the 2001 General Election, coming fourth with 2,296 votes. He was the only ethnic minority candidate standing in Wales, when he was described as "a bit of a character, doing passable imitations of then leader William Hague". He was the candidate for Watford in the 2005 General Election, a marginal seat, coming third with 14,634 ; The Almanac of British Politics said he "did well not to be squeezed by the other two" main party candidates and journalist David Aaronovitch called him a "young, energetic DJ with an excellent website and a nimble way with policy". During the campaign, Miraj noted that "Muslims are not the flavour of the month right now and we have a massive PR job to do." He said some voters told him they would not vote for him because he was a Muslim. Miraj applied for three seats with vacancies where MPs were retiring in 2010, including Witham in Essex, but felt blocked because of his race, saying that Conservative MPBernard Jenkin told him, "Good luck, Ali, but I would be shocked if they didn't pick a white, middle-class male", which Jenkin denied. In the end, Priti Patel was selected; as an Asian woman this went against Miraj's prediction, but he commented, "This is a bright day for the party and indicative of progress." Miraj was on the candidate list for Watford for the 2010 General Election, with commentator Martin Bright calling him "an obvious choice for Cameron's A-list", but Miraj was dropped from the list in July 2007. Although he had been part of party leader David Cameron's 2005 leadership campaign, and was on Conservative policy review boards, including that for International and National Security, he criticised Cameron after the party came third in two by-elections, saying, "I'm disillusioned because I think substance has been replaced by PR". Miraj was suspended as a candidate the next day; Cameron said Miraj had asked him for a peerage the same day as his criticism, which Miraj said was a smear, because Cameron had called the meeting.
Miraj's family comes from Pakistan, and he is a Muslim; he opposes radicalism and supports freedom of speech. He attended Haberdashers' Aske's Boys' School in Elstree and then the London School of Economics. He lives in Bow, London. When working as an auditor at the Ministry of Sound in the late 1990s, he became interested in house music and attended a course at Point Blank DJ School in Hoxton. He has worked as a part-time DJ since the early 2000s. From February 2014, he has run the monthly Decks and the City night in Shoreditch at The Horse and Groom; former footballer Glenn Helder played at the first night. Joe Bish of Vice said of the night "This may just be the most reprehensible thing I've ever written about".