Maldives parliament late Thursday voted to repeal the contentious anti-defection law as the opposition coalition flexed its new found parliament majority.
During the parliament sitting late Thursday, the motion to repeal the law was passed after 37 lawmakers voted in favour while 17 were against.
The outgoing government controlled parliament in March had passed the anti-defection law largely devised to disqualify a dozen former government lawmakers.
Top ruling party lawmaker Riyaz Rasheed had filed the motion in parliament to repeal the law.
According to the law, lawmakers elected on party tickets would lose their respective seats if they quit, change or are dismissed from the party. However, the law would not apply to independent members if they sign for a particular party.
The law also does not apply to lawmakers for violating party whip-lines or are penalized by a party for disciplinary violations.
Almost all lawmakers during the debate had agreed that the law contradicted several constitutional rights.
However, some members had insisted on the need for such a law to be brought in once the necessary constitutional amendments are passed.