Minnesota Democrat Ilhan Omar — one of two Muslim women recently elected to the House of Representatives — will become the first to wear the hijab in Congress when the new session begins on Thursday.

Democrats are expected to end a nearly two-century-old rule that bans hats on the floor when they assume control of the House for the first time since 2010.

Omar, 37, reflected on her historic rise to Congress in a heartfelt tweet.

“23 years ago, from a refugee camp in Kenya, my father and I arrived at an airport in Washington DC,” she wrote Wednesday, along with a picture of her and her father with their luggage in tow. “Today, we return to that same airport on the eve of my swearing in as the first Somali-American in Congress.”

The headwear rules were enacted in 1837 by members of Congress who wanted to break from the British Parliament’s topper-wearing custom.

In November, a Democratic source told The Post that the rule will be updated to include exceptions allowing religious headwear and coverings for medical reasons.

In November, Omar spoke out against the archaic ban, which states that a House member must be “uncovered” to address the floor.

“No one puts a scarf on my head but me. It’s my choice — one protected by the first amendment,” she tweeted. “And this is not the last ban I’m going to work to lift.”

The congresswoman-elect co-authored the amendment to the hat rule, along with House Democratic leader Nancy Pelosi of California and Rep. Jim McGovern (D-Mass.).

Omar and Michigan Democrat Rashida Tlaib were the first Muslim-American women elected to Congress in November’s midterm elections.

The pair are among a record number of women who will be sworn in Thursday, including New York’s Alexandria Ocasio-Cortez, who, at age 29, is poised to become the youngest woman to serve in Congress.