Ghana's supreme court on Wednesday overturned a decision that had shut down parliament just months ahead of elections.
Last week, parliament speaker Alban Bagbin declared four parliamentary seats vacant.
The move effectively halted all legislative activity less than two months before the country's general elections, which are set to be a tight race against a backdrop of economic recovery following a severe financial crisis.
But on Wednesday, the country's supreme court overturned the move.
"Given the irreparable harm that could be caused to the constituencies -- comprising hundreds of thousands of Ghanaians... this court must address this dispute promptly," Chief Justice Gertrude Torkornoo said.
Ghana is a country in West Africa that is often seen as a beacon of political stability in a region prone to unrest.
The crisis was triggered by a standoff between President Nana Akufo-Addo's ruling New Patriotic Party (NPP) and the opposition National Democratic Congress (NDC), which gained a slim majority after the defection of four lawmakers.
Ghana's constitution bars MPs from defecting from the party they were elected under to run for another party or as independents.
The seats the speaker declared vacant included two from the NPP, one from the NDC, and one independent MP.
Ghana is due to hold presidential and parliamentary elections on December 7.