London (CNN) British lawmakers have temporarily seized control of the Brexit process from Prime Minister Theresa May, in a rare move that puts lawmakers in the driving seat.

MPs defied the government on Monday evening to vote 329 to 302 in favor of an amendment giving them control of Parliament's agenda on Wednesday and clearing the way for a series of alternative votes to May's widely criticized withdrawal agreement with the European Union.

Come Wednesday, lawmakers could vote on as many as seven different options -- which might include a second referendum, crashing out with no deal, and a Norway-style deal with the EU, giving the UK full access to the single market and the European Free Trade area.

Thirty Conservative lawmakers defied the government whip to vote in favor of the amendment, which was proposed by Conservative remainer Oliver Letwin, a fact that will be hard for Theresa May to ignore.

The rebels included three government ministers, one of whom -- now ex-business minister Richard Harrington -- tweeted his resignation letter as the amendment went to a vote.

JUST WATCHED Massive crowds march against Brexit in London Replay More Videos ... MUST WATCH Massive crowds march against Brexit in London 01:31

Read More