A group of Latvian MPs asked the court on March 21 to examine the border treaty with Russia in order to determine its accordance with country's Constitution. They claimed the treaty, signed in March, violated article 3 of the Latvian Constitution, concerning territorial integrity.
The treaty, set to put an end to a long-running territorial dispute between the two former Soviet republics, was signed in Moscow on March 28, and ratified by President Vladimir Putin on October 3.
Latvia's parliament ratified it on May 17, and the country's president approved the law on May 29.
In line with the treaty, a 9.5-kilometer (6-mile) sector of the border is to be moved 30 meters (98 feet) to the west and become Russian territory.
By signing the treaty, European Union member Latvia officially recognized its post-Soviet borders with Russia, dropping its earlier territorial claims to the Pytalovsky District in Russia's Pskov Region, part of the Baltic country until World War II.
Latvian President Valdis Zatlers said on Thursday that the Constitutional Court's ruling had resolved all outstanding issues concerning the treaty. "We have resolved our dispute by democratic means, and this is a great achievement," he said.