In 2005 Bihar election, NDA came to power and Modi was elected the leader of Bihar BJP Legislature Party. He subsequently resigned from the Lok Sabha and took over as the Deputy Chief Minister of Bihar. He was given the Finance Portfolio along with a number of other departments. After NDA victory in 2010 Bihar elections, he continued to be the Deputy Chief Minister of Bihar. Modi did not contest the 2005 and 2010 Bihar Assembly elections to be able to campaign for BJP.