Politics makes strange bedfellows … and lunch dates.

Though they’re on opposite sides of the aisle today, Democratic presidential hopeful Pete Buttigieg, 37, and GOP impeachment hero Congresswoman Elise Stefanik, 35, struck up a chummy relationship while undergraduates at Harvard — and have remained friendly since.

“Pete and Representative Stefanik were friendly in college and hung out from time to time,” Buttigieg campaign spokesman Chris Meagher told The Post. A rep for Stefanik confirmed the two went out for coffee at least once while on campus.

Since their days at Cambridge, the gay South Bend, Indiana, mayor and the fiery upstate lawmaker have kept up, and speak occasionally. After Stefanik arrived in Congress in 2015, Buttigieg popped into her office to greet his old friend.

Buttigieg was still in the closet during his Harvard years and dated women throughout his time there.

“No, I didn’t know Peter was gay in college. I don’t think any of us suspected either,” his former roommate Steven Koh told ABC News in September. “He had a girlfriend freshman year; he had a girlfriend senior year.”

Both campaigns denied the friendship ever ventured into anything more.

Buttigieg came out in 2015 at the age of 33. He married his husband Chasten in 2018.

Stefanik, who made history as the youngest woman ever elected to Congress at the age of 30, married Matthew Manda, a former comms director for Kansas Congressman Kevin Yoder, two years ago in a lavish ceremony in Saratoga.