- 176 Gujarat MLAs voted, each candidate needed 45 votes to win
- Votes of 2 rebel Congress MLAs invalid, number drops to 44 votes for win
- Ahmed Patel manages to get 44 votes amid cross-voting, defections
But Mr Patel's victory could very well have ended in defeat had the Election Commission not accepted the Congress's claim that votes cast by its two rebel lawmakers should be cancelled because they had shown their ballot paper to the BJP chief Amit Shah.
176 legislators of the Gujarat assembly voted on Tuesday. With the two votes being declared invalid and the total valid votes down to at least 174, each candidate needed 44 votes to win, instead of the earlier 45.
Mr Patel managed an exact 44 votes - the figure that was needed to win the cliffhanger.
From the BJP, both Amit Shah and union minister Smriti Irani comfortably managed 46 votes each. While Mr Shah will make his debut in Parliament, Ms Irani will be re-elected to the Upper House. For the third seat, the BJP had fielded former Congressman Balwantsinh Rajput to challenge Ahmed Patel.
That was turned into a close contest due to the defection recently of six Congress MLAs and also cross-voting, all by MLAs close to local politician Shankarsinh Vaghela who is seen to be exacting revenge for the Congress' refusal to project him as presumptive chief minister in assembly elections in Gujarat later this year.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections. Election results will be out on May 23.