Thai constitutional court has rejected an opposition request to annul the February 2 election, citing insufficient grounds.
The Democrat Party had argued that the poll violated the constitution for several reasons, including that it was not completed in one day.
The government blamed the delay on the opposition blocking polling stations.
Thailand has been in a political crisis since mass anti-government protests kicked off in November.
They were sparked by a controversial amnesty bill which critics said would allow former leader Thaksin Shinawatra to return to Thailand without serving time in jail for his corruption conviction.
The demonstrators have since called for the resignation of PM Yingluck Shinawatra, Thaksin’s sister, and her government.
Yingluck Shinawatra had called the election in the hope of defusing the crisis.
But the Democrats refused to contest the election – which they were almost certain to lose – arguing that reform of Thailand’s political system must come first.
The constitutional court annulled a previous election seven years ago for seemingly trifling irregularities.
It has also twice dissolved previous incarnations of the ruling Pheu Thai party and twice forced prime ministers from office.
This time though, the court dismissed the petition saying there was no credible evidence that the election had violated the constitution.
The opposition movement has not exhausted legal avenues for blocking the government, our correspondent says.
They are still hoping an official corruption investigation into Yingluck Shinawatra and other ministers will prevent her from forming a new government.
Wiratana Kalayasiri, a former opposition lawmaker and head of the Democrat Party’s legal team, who brought the opposition petition to court, said: “This case is over.”
“But if the government does anything wrong again, we will make another complaint,” he told the AFP news agency.
Millions were prevented from voting because anti-government protesters forced the closure of hundreds of polling stations in Bangkok and in the south on election day.
It means the results of the election cannot be announced until special polls have been held in the constituencies that missed out on the February 2 vote.
The Election Commission said on Tuesday that those elections will be held on April 27.
However, no decision has yet been made on the 28 constituencies where no candidates stood in the election.
[youtube 7Bvhm8jl4ao 650]