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.
7Bvhm8jl4aoThe US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…