Devendra Fadnavis resigned as Maharashtra chief minister on Tuesday ahead of the floor test shortly after rebel NCP leader Ajit Pawar did a u-turn and quit as the BJP leader's deputy, in another dramatic twist to the month-long political drama that will see Shiv Sena supremo Uddhav Thackeray head the new government.