Washington (CNN) John Boehner , the Ohio Republican who steered his party to an overwhelming House majority in 2010, said in a news conference Friday afternoon he had decided only that morning to announce his plans to resign from Congress.

"Last night I started thinking about this and this morning I woke up and I said my prayers -- as I always do -- and I decided today's the day I'm going to do this. As simple as that," Boehner said during an emotional Capitol Hill press conference a day after he had a moving encounter with Pope Francis.

He will step down as Speaker and leave Congress at the end of October.

The Ohio Republican's tenure as Speaker has been marked by clashes with conservatives -- especially when it comes to fiscal policy. He's struggled to push through legislation to increase the debt ceiling and was facing another showdown next week to keep the government open. The Speaker has often relied on Democratic votes during these moments -- a strategy that has infuriated conservatives.

Boehner, who turns 65 in November, said Friday that he had planned to step down at the end of the year but turmoil within his caucus prompted him to resign earlier than planned.

"I got plenty of people following me but this turmoil that's been churning now for a couple of months, it's not good for the members and it's not good for the institution. If I was not planning on leaving here soon, I can tell you I would not have done it," Boehner said.

The abrupt decision comes amid heavy pressure from conservatives for Boehner to take a harder line on their causes, most recently over defunding Planned Parenthood as part of a package that would keep the government open. Boehner said he didn't want to put his fellow members through another vote to challenge his leadership.

Boehner, who has presided over the House since 2011, explained during a closed-door meeting with Republicans Friday morning that he had only planned to serve two terms as Speaker but decided to hold onto his post after then-House Majority Leader Eric Cantor lost his seat during a primary last year.

Boehner also told the lawmakers that Pope Francis' visit to Congress the day before was a crystallizing moment, according to the lawmaker. Boehner then read the prayer of St. Francis to the conference after announcing his decision.

Why now

Boehner said the main driver behind his resignation was concern for his conference, he also recalled emotionally when he and the Pope found themselves alone during the visit Thursday -- something Boehner, a devout Catholic, had sought since taking the helm of the House GOP caucus.

"The Pope puts his arm around me and kind of pulls me to him and says please pray for me. Who am I to pray for the Pope? But I did," Boehner said, struggling to hold back tears.

Boehner: Pope hugged me and said please pray for me. Who am I to pray for the pope? But I did http://t.co/PPEIjZPARm http://t.co/AmvnnI3WdT — CNN Politics (@CNNPolitics) September 25, 2015

Boehner also drew on the Pope's words during his address to Congress on Thursday and said he hoped "we will all heed his call to live by the Golden Rule." He also stressed the importance for leaders to "find common ground to get things done."

He said he will not partake in the vote to choose his successor but said his deputy, House Majority Leader Kevin McCarthy "would make an excellent Speaker."

President Barack Obama said Friday at a previously scheduled news conference alongside Chinese President Xi Jinping that he called Boehner after learning of his resignation.

He did not say what he told Boehner, but praised him as "a good man" and "a patriot" who "cares deeply" about the country and always kept his word.

"We have obviously had a lot of disagreements and politically we're at different ends of the spectrum," Obama said. "He has always conducted himself with courtesy and civility with me. He has kept his word when he made a commitment. He is somebody who has been gracious. Most importantly he's somebody who understands that in government and in governance you don't get 100% of what you want."

Obama said he hoped Boehner's successor would recognize that political differences should not come at the risk of shutting down the government.

"There's no weakness in that. That's what government is in our democracy. You don't get what you want 100% of the time. So sometimes you take half a loaf, sometimes you take a quarter loaf and that's certainly something I've learned here in this office," Obama said.

Congressional leaders respond

House Minority Leader Nancy Pelosi called Boehner's resignation "seismic for the House" and called it evidence of the far right's "hijacking" of the Republican Party. And she said the squabble to succeed Boehner will be "more than a distraction" to efforts to resolve the latest funding battle roiling the Hill.

"That resignation of the Speaker is a stark indication of the disarray of the House Republicans," Pelosi said during a Friday morning press conference.

Pelosi said she had not yet spoken with Boehner, but affirmed that she planned to continue negotiating directly with him to achieve her goal of funding Planned Parenthood.

Senate Minority Leader Harry Reid tweeted similarly that the ouster of "a good man like Speaker Boehner -- someone who understood the art of compromise" showed that "the party of Eisenhower and Reagan is no more."

Senate Majority Leader Mitch McConnell also lamented Boehner's resignation, saying it is "very, very sad" that the tea party has "taken over control of the party."

"John Boehner, he ... is a conservative Republican, but his problem is that John Boehner has been pragmatic. He realizes that there come times when you have to make a deal," McConnell said, before pointing out that Reagan also "understood the art of compromise."

Boehner and McConnell have not always seen eye to eye as Boehner wrestled with hardline conservatives in his caucus, but McConnell said that throughout those disagreements, Boehner "never, ever misled me.

"His word was always good," McConnell said.

By ousting a good man like Speaker Boehner -- someone who understood the art of compromise -- the party of Eisenhower and Reagan is no more. — Senator Harry Reid (@SenatorReid) September 25, 2015

The next Speaker

The vacancy leaves the party scrambling to find a successor.

McCarthy, the No. 2 Republican who could succeed Boehner, praised the Speaker as "a true statesmen" in a statement Friday morning and called on the Republican caucus "to focus on healing and unifying."

"John has been a leader, mentor, and most of all friend throughout, and I learned not only from his experience but also from his unshakeable faith and principles. It takes profound humility to step down from a position of power, and John's depth of character is unmatched," McCarthy said.

Rep. Paul Ryan, the House Ways and Means Committee chairman who was the party's vice presidential nominee in 2012, said he isn't planning to run for the seat at this time.

Rep. Raul Labrador, a favorite of conservatives who ran unsuccessfully for majority leader in January, declined to say if he would run for Speaker.

Rep. Tim Huelskamp, who claimed in January that he lost his Agriculture Committee seat after voting against Boehner for another term as Speaker, said he and other Tea Party Republicans were jubilant at the news of Boehner's resignation.

"The establishment lost today," he said.

He bluntly claimed the Speaker was pushed out by a simmering revolt among hardline conservatives, particularly those who Boehner had punished and tried to defeat in their re-elections last year.

"He read the writing on the wall," Huelskamp said. "We need new leadership. Every time we go home we hear, 'Fire Boehner.' We need a new Speaker who can standup to the president."

Asked who will run to succeed Boehner in the top post, Huelskamp had just one answer: "Everybody!"

But he added hardline conservatives, often splintered, would agree on a candidate together and not offer any early endorsements.

'I got choked up'

Ohio GOP Rep. Steve Chabot ‎called the mood in the room "somber" during Boehner's announcement and said there were tears from the Speaker and other lawmakers.

"I got choked up," Chabot said.

Boehner's decision came as a shock to many, with his top deputy House Majority Leader Kevin McCarthy finding out moments before his announcement. McCarthy, a California Republican, is a top candidate to succeed Boehner.

Rep. Greg Walden, a member of Boehner's House leadership, said he had no idea Boehner would announce his resignation this morning and called it a "terrible loss for the party."

Walden said he wondered what the Pope told Boehner that may have affected his decision: "I don't know if this was a message from God but I wish he sent a different message."

The Speaker has survived many challenges to his position. He was facing another threat after Rep. Mark Meadows, a conservative North Carolina Republican, offered a resolution before the August recess to "vacate the chair," a rarely invoked move that would have stripped Boehner of the Speaker's gavel if it passed.

Meadows told reporters on Friday he would not run to succeed Boehner.

Photos: The hand-off: How Speakers Ryan to O'Neill came to power Photos: The hand-off: How Speakers Ryan to O'Neill came to power The current Speaker of the U.S. House of Representatives is Paul Ryan, a Republican from Wisconsin. He gained his power from his predecessor, former Speaker John Boehner, after the Ohio Republican shocked the political world by deciding to vacate his position. Click through for other recent speakers: Hide Caption 1 of 8 Photos: The hand-off: How Speakers Ryan to O'Neill came to power Former Speaker John Boehner, a Republican from Ohio, gained his power from his predecessor, former Speaker Nancy Pelosi, when the GOP gained the majority of seats in the House in the 2010 midterm elections. Boehner announced his intention to leave the position in September 2015, and Paul Ryan succeeded him in October. Hide Caption 2 of 8 Photos: The hand-off: How Speakers Ryan to O'Neill came to power U.S. Rep. Nancy Pelosi was the first and only female speaker of the House. Her speakership lasted from January 4, 2007, to January 3, 2011. Pelosi, a Democrat, lost her seat to the Republican majority in the 2010 midterms. John Boehner took the gavel. Hide Caption 3 of 8 Photos: The hand-off: How Speakers Ryan to O'Neill came to power Dennis Hastert remains the longest serving Republican speaker in history, from January 6, 1999, to January 3, 2007. However, the GOP lost its majority in the House of Representatives, leaving Democrat Nancy Pelosi to become speaker. On Thursday, May 28, Hastert was accused in an indictment of lying to the FBI and evading currency reporting requirements as he sought to pay off a subject to "cover up past misconduct." On Thursday, October 28, Hastert pleaded guilty in the case. Hide Caption 4 of 8 Photos: The hand-off: How Speakers Ryan to O'Neill came to power Newt Gingrich broke the four-decade line of Democratic speakers by becoming speaker from 1995 to 1999 and was named Man of the Year by Time magazine for the accomplishment. He then fell from grace after a disappointing 1998 midterm election for the GOP, prompting him to step down from both the speakership and Congress. Gingrich's resignations came as a complete surprise to many, as the speaker had been fighting to keep his top job until the announcement. Hide Caption 5 of 8 Photos: The hand-off: How Speakers Ryan to O'Neill came to power Tom Foley, a Democrat who represented Washington state in the House for 30 years, took over the office of the speaker after the resignation of Jim Wright. Foley served as speaker from 1989 to January 1995 but was defeated in the 1994 election by George Nethercutt. Hide Caption 6 of 8 Photos: The hand-off: How Speakers Ryan to O'Neill came to power Jim Wright of Texas served two years as speaker, after Massachusetts Democrat Tip O'Neill retired. But he stepped down in 1989 after facing a House Ethics Committee investigation on improprieties with the sale of his book and fees from speaking engagements. He was the first speaker to resign in the face of a scandal. He died on May 6, 2015, at 92. Hide Caption 7 of 8 Photos: The hand-off: How Speakers Ryan to O'Neill came to power A Massachusetts Democrat who served as speaker from 1977 until retirement in 1987, Tip O'Neill was well-known for his deal-making as well as his collegiality with former President Ronald Reagan. Former Speaker Nancy Pelosi thought to commemorate the 34-year congressional career of O'Neill with an office building on the edge of Capitol Hill that bears his name. O'Neill was the longest continuously serving House speaker of any party in U.S. history. Hide Caption 8 of 8

2016 reactions

Still, some conservatives applauded Boehner's resignation.

"Yesterday John Boehner was Speaker of the House," Sen. Ted Cruz said at the Values Voter summit Friday. "Y'all come to town and somehow that changes. My only request is can you come more often?"

Former Pennsyvania Sen. Rick Santorum, another GOP presidential candidate, told attendees at the summit that it was time for Boehner to step down, claiming that Boehner had "changed a bit" during his time in Washington.

"It's probably time for him to have stepped down to start a new chapter here in Washington, D.C.," Santorum said.

Sen. Rand Paul echoed that message during a campaign stop in New Hampshire, saying Boehner's resignation might be "a step in the right direction."

Paul criticized Republican leadership for failing to fight Democrats on funding for Planned Parenthood and said it's not just conservatives in Congress that are frustrated.

"I think all incumbents are going to facing a threat if we don't stand up and do what the American people want and that is that we have to control spending. We have to assert ourselves and show that we are in charge of spending."

Paul also joked about running for the speakership, referencing the one vote he got back in January when conservatives challenged Boehner.

Today the establishment lost. #Boehner — Cong. Tim Huelskamp (@CongHuelskamp) September 25, 2015

Republican presidential candidate Jeb Bush praised Boehner in a tweet Friday morning.

"John Boehner dedicated his life to public service. Bringing the Holy Father to Congress was a fitting cap to a great career," said Bush, the former governor of Florida.

John Boehner dedicated his life to public service. Bringing the Holy Father to Congress was a fitting cap to a great career. — Jeb Bush (@JebBush) September 25, 2015

Republican National Committee Chairman Reince Priebus also praised Boehner, thanking him "for his efforts to make our party, the state of Ohio, and our nation stronger."

"He has been a tireless advocate for conservative principles who has raised millions to elect and re-elect Republicans to the House of Representatives. Our party owes him a great debt," Priebus said in a statement.

The House Speaker is third in line for the presidency after Vice President Joe Biden.