All the votes have not been counted but Canadian networks have forecast a Liberal minority government.
As of this writing, the Liberals are leading in 153 ridings, compared to 122 for the Conservatives, 30 for the Bloc Québécois, 29 for the NDP and three for the Greens.
The Liberals need 170 to form a majority government in the 338-seat Parliament.
All four of the major party leaders are leading in their ridings.
People's Party of Canada Leader Maxime Bernier appear to be headed for defeat.
In early B.C. returns, Green candidates Elizabeth May and Paul Manly are leading in their ridings.
In Vancouver Granville, New Democrat Anjali Appadurai is leading as of this writing.
One of Justin Trudeau's cabinet ministers, Maryam Monsef, lost to her Conservative opponent, Michelle Ferreri, in Peterborough-Kawartha. Monsef is the minister of women and gender equality and rural economic development.
The fisheries and oceans minister, Bernadette Jordan, also went down to defeat. She lost to Conservative Rick Perkins in South Shore–St. Margarets in Nova Scotia.
The Liberals were hoping to win a majority government at the start of the campaign, but they were unable to push down the Bloc's seat count in Quebec.
By the end of the evening, Green candidate Paul Manly was in third place in Nanaimo-Ladysmith, trailing the leader, New Democrat Lisa Marie Barron, by 2,734 votes. Conservative Tamara Kronis is 89 votes behind Barron.
In Vancouver Granville, Liberal Taleeb Noormohamed has a 230-vote lead over Anjali Appadurai of the New Democrats.
Overall, the Liberals had won or were leading in 158 ridings. The Conservatives had won or were leading in 119 ridings.
The Bloc Québécois was poised to win 34 seats, whereas the NDP was leading or had won 25 seats. The Greens elected two of their candidates.
In B.C., the Liberals won or are leading in 15 races, whereas the Conservatives and the NDP won or are leading in 13 each. Elizabeth May was the only Green elected.
The Conservatives captured the most votes nationwide at 34 percent, followed by the Liberals at 32.2 percent. The NDP won 17.7 percent. Next in the popular vote was the Bloc Québécois at 7.8 percent, the People's Party of Canada at 5.1 percent, and the Greens at 2.3 percent.