Upon Crowder's retirement, MacGregor entered the NDP nomination race to select a candidate for the upcoming 2015 federal election in the new Cowichan—Malahat—Langford riding.
[3] With the 2015 federal election approaching, the other parties also nominated candidates and the NDP leader Tom Mulcair visited the riding during his tour of Vancouver Island.
The Conservative Party nominated North Cowichan councillor John Koury but he withdrew from the race less than two months before the election citing family issues and he was replaced by chiropractor Martin Barker from Duncan.
[5] Despite an unexpected surge for the Liberal Party, MacGregor won the riding in line with pre-election polls that projected a NDP victory.
This bill was in response to the 2015 election campaign which lasted 78 days, the longest in Canadian history, and which MaGregor viewed as unfairly favouring the most well-funded political parties.
[11] MacGregor held a series of town hall meetings in his riding to hear views on electoral reform and to promote the private member bill.
[18] He re-introduced his private member bill seeking to prohibit investments of the Canada Pension Plan in entities that produce weapons or commissioned of human, labour or environmental rights violations but it was defeated with both Liberals and Conservatives voting against it.