Oregon House of Representatives
In 2004, Kotek lost the Democratic primary for Oregon House District 43. In 2006, she won a three-way Democratic primary for Oregon House District 44, which includes North and Northeast Portland. In the general election, she defeated her Republican opponent with nearly 80% of the vote.
Kotek ran unopposed for reelection in 2008. In 2010, she faced a Democratic primary challenge but won over 85% of the vote. Kotek won the 2010 general election with almost 81% of the vote. She was reelected every two years through 2020.
Kotek rose in the House leadership, serving as the Democratic whip in the 2009 legislative session. In the 2011 session, she was co-speaker pro tempore with Republican Andy Olson due to the House's 30–30 partisan split.
In June 2011, the House Democratic Caucus chose Kotek as its leader (succeeding Dave Hunt).
After Democrats won a House majority in the 2012 election, they nominated Kotek for speaker of the House for the 2013 legislative session. She was elected to the position, becoming the first out lesbian in the nation to serve as a legislative speaker. She was reelected for in 2015, 2017, 2019, and 2021. Kotek is Oregon's longest-serving speaker of the House.
In December 2016, Kotek became the chair of the board of directors of the Democratic Legislative Campaign Committee. She left the post in July 2019.
In 2020, Republicans worked with Democrats to redraw the districts following the 2020 U.S. census with equal representation from the Democratic and Republican parties as a compromise to have the Republicans stop the use of quorum rule restrictions to stall legislation. Kotek later reversed her decision and restored the Democratic majority on the committee redrawing the congressional districts.
In January 2022, Kotek announced her resignation from the House to focus on her gubernatorial campaign. She was succeeded as speaker by Dan Rayfield and in the 44th district by Travis Nelson.
During her time as speaker, Kotek introduced legislation to allow for increased housing construction in Oregon. In 2017, she unsuccessfully pushed for legislation to permit duplexes in residential neighborhoods that were previously exclusively zoned for single-family housing. Her House Bill 2001, which sought to enable missing middle housing, required cities of more than 10,000 and counties of more than 15,000 to allow fourplexes in neighborhoods previously zoned exclusively for single-family housing, and to permit accessory dwelling units and easier rules for subdividing existing homes. The bill passed in 2019, making Oregon the first state to abolish single-family exclusive zoning across the state.