Before NDA came to power in 1998, he was said to be very close to L K Advani but after formation of NDA government, he won over the confidence of Prime Minister Atal Bihari Vajpaee and became his blue-eyed boy.
When the BJP returned to power in 1998, he was first appointed as advisor to the Prime Minister. He resigned from that post and stood for Rajya Sabha elections in July 1998. He won and in December 1998, he was appointed the Minister for Information and Broadcasting, and Food Processing.
A year later, in October 1999, he was moved to Parliamentary Affairs and Water Resources. He relinquished Water Resources a month later in November and took charge of Information Technology (in addition to Parliamentary Affairs).