Haryana Chief Minister Nayab Singh Saini was administered oath as a legislator by the Assembly Speaker as MLA on Thursday.
Speaker Gian Chand Gupta administered the oath to the BJP leader in his chamber.
Saini recently defeated his main rival, Congress's Tarlochan Singh to win the by-poll for the Karnal Assembly seat, which party colleague Manohar Lal Khattar earlier held.
In the 2019 Assembly polls, Khattar had retained the seat defeating Tarlochan Singh.
Saini, the outgoing MP from Kurukshetra, had contested the by-election for the Karnal assembly seat after he replaced Khattar as chief minister.
The by-poll was necessitated by Khattar's resignation as MLA from Karnal after his removal from the post of chief minister.
Polling for the state's 10 Lok Sabha seats and the Karnal assembly constituency was held in the sixth phase of the general election on May 25 and the results were declared on June 4.
Saini was sworn in as the chief minister on March 12.
Khattar, who was fielded by the BJP from the Karnal parliamentary segment, won the seat.