"Congratulations to Yogi Adityanathji, (Deputy Chief Ministers) Keshav Prasad Mauryaji, Dinesh Sharmaji and all those who took oath. Best wishes for serving UP," Modi tweeted.
Modi said the new team would do "record development" in Uttar Pradesh to make it "Uttam Pradesh".
"I have immense confidence that this new team will leave no stone unturned in making UP Uttam Pradesh. There will be record development. Our sole mission and motive is development. When UP develops, India develops," Modi said.
The Prime Minister said he wanted to serve Uttar Pradesh's youth and create opportunities for them.
Modi also appreciated the hard work of Bharatiya Janata Party workers and people's support which he said helped the party to form governments in Uttar Pradesh, Goa, Manipur and Uttarakhand.
"With the blessings of people and hard work of our Karyakartas, the BJP has formed governments in four of the five states that went to the polls. Our unwavering efforts to create a Bhavya and Divya Bharat continue. India's Jan Shakti is powering the rise of a new and transformed India," he added.