WASHINGTON -- It is surprisingly difficult to write speeches for President Barack Obama, one of the most gifted orators in recent political history.

Yes, written words tend to sound better when he's reciting them. But the sheer number of speeches he's delivered and the magnitude of the moments in which they are given make it tough to be original and even harder to be memorable. The speech-writing process can be arduous and time consuming; it provokes self-doubt.

In his first interview since helping write the president's second inaugural address, Jon Favreau, director of speechwriting for the White House, acknowledged grappling with all these challenges. The speech, which Favreau said would probably be one of the last he will write in his current post, was praised as crisp, bold and assertive -– a standout in Obama's already rich canon of past addresses. But getting to that point was difficult.

"It was one of the hardest speeches I've written," Favreau said.

And he's written quite a few. Favreau has worked with Obama since 2005, helping his boss speak about his greatest triumphs, his public humiliations, dicey political topics and complex policy negotiations. The second inaugural address, an affirmation of sorts of the work they've done together, was conceived through a now familiar routine.

The process started in early December. After sharing ideas with the president, Favreau looked back at a number of second inaugural addresses to figure out what has worked in the past. Several speeches stood out -- some were obvious choices, others not.

"Lincoln's second inaugural was very specific to the time and space he was in," recalled Favreau. "I actually thought that [George W.] Bush's second inaugural was quite good as a rhetorical exercise. I obviously didn't agree with a lot of the policy in there. But he kept to a theme, which was, the success of liberty here depends on the success of liberty everywhere."

He also gathered a dozen or so of Obama's best addresses -– "a binder full of speeches" –- and mined them for inspiration, memorable turns of phrase and compelling themes. At the top of the list was the commencement speech Obama delivered at Knox College as a senator in 2005, when he spoke generally about the need for collective action in a global society.

"We always go back" to that speech, Favreau said.

He then set out to write a draft.

"We wanted to make sure that we were going to pick one theme and not go all over the place. And the president said, "Look there's the opening lines of the Declaration of Independence and for 200 years the American story has been about making those promises real,'" recalled Favreau. For an underlying theme, they settled on the notion that "alongside our rugged individualism, there's another strand of American belief which is that we're all in this together -- e pluribus unum, out of many, one."

Finding a broad concept was straightforward enough. Putting meat on its bones, and keeping the speech relatively short -- Favreau's goal -- was trickier. Inaugural addresses often make history with a singular, memorable line. But Favreau and his team don't operate with that mindset.

"We've never tried nor been good at writing to lines, and we both know that," he said. "There is a temptation ... But I think that really good lines, history judges that ten years down the road. The harder you write for a line, the more likely your line is to become something that is sort of cliché."

The president also wanted to make sure that specific topics -- what he calls "buckets" -- were addressed, starting with the economy and social safety net, and going through climate change, national security and foreign policy, and equality. All of those subjects had appeared in speeches past, but their inclusion in the second inaugural address required a more delicate touch.

You couldn't "just bury your head in the sand" when it came to the politics of the past four years, Favreau argued. So they decided to directly address the conflicting philosophical visions of the president and of conservative Republicans. From there came the speech's forthright tone and its most combative line: that entitlement programs "do not make us a nation of takers; they free us to take the risks that make this country great."

The inclusion of climate change, which received heavy media attention in the aftermath of the speech, was not a controversial decision during the writing process, Favreau said. The president had discussed it on election night and many times before.

The lines about gay rights -- and, in particular, the reference to the 1969 Stonewall Riots – were more complicated additions, but still, ultimately, an easy call.

"Up until the weekend before the speech we hadn't thought that Stonewall would be such a big deal," said Favreau. "We had just come from this campaign where we talked about gay rights all the time. The line about Stonewall and Selma and Seneca Falls was actually in the commencement speech he gave at Barnard [in 2012]. And so we brought it back for this because it hadn't gotten much attention at all."

"We knew we wanted to pay tribute to [Martin Luther] King in some way. So it kind of fit right there," he added. "Before he gave the speech, I'm like, I actually think this is going make some news because it's probably the first time a president has mentioned the word "gay" or "Stonewall" in an inaugural speech."

Two Sundays before the speech, Favreau had a draft. From there, he and the president continued to exchange edits. Obama jotted down his thoughts -- longhand and with small, neat penmanship -- on a yellow notepad, a mild irritant for the speechwriting team, which remembered fondly how he would use track changes on his laptop during the 2008 campaign. It was impossible to recall how many actual drafts the two had gone through.

"He's known for his rhetoric, right?" said Favreau. "But he's also got a very lawyerly, logical mind. And so the thing he always does best is putting every argument in order."

The night before the inauguration, Obama was done editing. All that was left to do was underline certain words so that they'd get proper emphasis in the delivery. The president did a read-through in the map room of the White House that night.

On Monday, the two rode together in the presidential motorcade to the Capitol Building. Favreau left shortly thereafter to sit in the crowd and watch with his parents. He doesn't mind listening to the speeches he writes, he said. It's the thought of following the commentary on Twitter that gives him cold sweats.

Favreau is going to help out with Obama's upcoming State of the Union address, which is slated for early February. But that, he believes, will be the last speech he works on inside the White House, the second inaugural being a more than adequate send off.

"This is definitely one of my favorites that we've worked on together, I think," he said, when asked to rank this speech among those he's helped write with Obama. "I just think it kind of laid everything out there that he believes, that he has been fighting for the last eight years -- longer -- in public life, in a pretty succinct, energetic, forceful 18 minutes."

Related on HuffPost:

Loading Slideshow...
  • Mr. President

    U.S. President Barack Obama waves as the presidential inaugural parade winds through the nation's capital January 21, 2013 in Washington, D.C. (Photo by Mark Wilson/Getty Images)

  • Mr. Vice President

    U.S. Vice President Joe Biden and his wife Dr. Jill Biden walk along Pennsylvania Avenue during the parade following Obama's second inauguration as the 44th U.S. president on January 21, 2013 in Washington, D.C. (JOE KLAMAR/AFP/Getty Images)

  • The First Couple

    President and Michelle Obama wave to onlookers as the presidential inaugural parade winds through the nation's capital January 21, 2013 in Washington, D.C. (Photo by Chip Somodevilla/Getty Images)

  • Right In Our Backyard

    U.S. President Barack Obama and First lady Michelle Obama walk past the reviewing stand as the presidential inaugural parade winds through the nation's capital January 21, 2013 in Washington, D.C. (Photo by Mark Wilson/Getty Images)

  • Parade Pandemonium

    U.S. President Barack Obama drives down Pennsylvania avenue in his vehicle during the Inauguration Parade on January 21, 2013 in Washington, D.C. (Photo by Joe Raedle/Getty Images)

  • Secret Service Security

    A U.S. Secret Service vehicle escorts President Barack Obama and First Lady Michelle Obama's motorcade during the inauguration parade on January 21, 2013 in Washington, D.C. (Photo by John Moore/Getty Images)

  • Obama's Wheels

    WASHINGTON, DC - JANUARY 21: U.S. President Barack Obama drives down Pennsylvania avenue in his vehicle during the Inauguration Parade on January 21, 2013 in Washington, DC. The President was sworn in for second term. (Photo by Joe Raedle/Getty Images)

  • Awaiting Obama's Arrival

    People watch as the presidential inaugural parade winds through the nation's capital January 21, 2013 in Washington, D.C. (Photo by Justin Sullivan/Getty Images)

  • Showtime

    U.S. President Barack Obama exits his limousine to walk during a portion of the presidential inaugural parade in the nation's capital January 21, 2013 in Washington, D.C. (Photo by Win McNamee/Getty Images)

  • A Walk Back In Time

    Men in traditional colonial garb perform as U.S. President Barack Obama and First Lady Michelle Obama walk along Pennsylvania Avenue during the parade following Obama's second inauguration as the 44th US president on January 21, 2013 in Washington, D.C.(MLADEN ANTONOV/AFP/Getty Images)

  • A Hearty Thank You

    President Barack Obama waves after taking the oath of office during the 57th Presidential Inauguration ceremonial swearing-in at the U.S. Capitol on January 21, 2013 in Washington, D.C. (JEWEL SAMAD/AFP/Getty Images)

  • The President's Pen

    U.S. President Barack Obama (4R) is surrounded by (L-R) Senate Majority Leader Sen. Harry Reid (D-NV), Sen. Lamar Alexander (R-TN), Sen. Chuck Schumer (D-NY), Vice President Joe Biden, House Speaker Rep. John Boehner (R-OH), House Majority Leader Rep. Eric Cantor (R-VA) and House Minority Leader Rep. Nancy Pelosi (D-CA) while signing a proclamation to commemorate the inauguration, entitled a National Day of Hope and Resolve, directly after swearing-in ceremonies in the U.S. Capitol on January 21, 2013 in Washington, D.C. (Photo by Jonathan Ernst-Pool/Getty Images)

  • Putting It In Writing

    President Barack Obama (2L) signs a proclamation to commemorate the inauguration, entitled a National Day of Hope and Resolve, as (L-R) Vice President Joe Biden, House Speaker Rep. John Boehner (R-OH), and House Majority Leader Rep. Eric Cantor (R-VA) look on directly after swearing-in ceremonies in the U.S Capitol on January 21, 2013 in Washington, D.C. (Photo by Jonathan Ernst-Pool/Getty Images)

  • It's Official

    President Barack Obama is sworn by Chief Justice John Roberts at the ceremonial swearing-in at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013.

  • The National Anthem

    President Barack Obama, surrounded by members of his family, listens to the National Anthem during the 57th Presidential Inauguration ceremonial swearing-in at the U.S. Capitol on January 21, 2013 in Washington, D.C. (JEWEL SAMAD/AFP/Getty Images)

  • The Winning Ticket

    U.S. President Barack Obama (L) talks with U.S. Vice President Joe Biden on the reviewing stand as the presidential inaugural parade winds through the nation's capital January 21, 2013 in Washington, D.C. (Photo by Mark Wilson/Getty Images)

  • Husband And Wife

    President Barack Obama takes the oath of office during the 57th Presidential Inauguration ceremonial swearing-in at the U.S. Capitol on January 21, 2013 in Washington, D.C. (JEWEL SAMAD/AFP/Getty Images)

  • Father And Daughters

    President Barack Obama is greeted by daughter Sasha as Malia looks on at the beginning of the 57th Presidential Inauguration ceremonial swearing-in at the US Capitol on January 21, 2013 in Washington, D.C. (JEWEL SAMAD/AFP/Getty Images)

  • Sister, Sister

    First daughters Sasha (L) and Malia arrive for the 57th Presidential Inauguration ceremonial swearing-in of President Barack Obama at the U.S. Capitol on January 21, 2013 in Washington, D.C. (JEWEL SAMAD/AFP/Getty Images)

  • The Second Family

    Vice President Joe Biden and his wife Dr. Jill Biden attend the Inaugural Luncheon in Statuary Hall on Inauguration day at the U.S. Capitol building January 21, 2013 in Washington D.C. (Photo by Allison Shelley/Getty Images)

  • Bill & Hillary

    Former president Bill Clinton and the current U.S. Secretary of State Hillary Clinton arrive for the 57th Presidential Inauguration ceremonial swearing-in of President Barack Obama at the U.S. Capitol on January 21, 2013 in Washington, D.C. (JEWEL SAMAD/AFP/Getty Images)

  • Hillary & Harry

    Former U.S. President Bill Clinton, Secretary of State Hillary Clinton and Senate Majority Leader Harry Reid, applaud during the Inaugural Luncheon in Statuary Hall on inauguration day at the U.S. Capitol building January 21, 2013 in Washington D.C. (Photo by Allison Shelley/Getty Images)

  • The Supreme Court

    U.S. Supreme Court Justices (L-R) Anthony Kennedy, Supreme Court Chief Justice John Roberts, Clarence Thomas, Sonia Sotomayor Elena Kegan, Samuel A. Alito, and Stephen G. Breyer attend the presidential inauguration on the West Front of the U.S. Capitol January 21, 2013 in Washington, D.C. (Photo by John Moore/Getty Images)

  • Let's Do Lunch

    President Barack Obama shakes hands as he and first lady Michelle Obama arrive at the Inaugural Luncheon in Statuary Hall on Inauguration day at the U.S. Capitol building January 21, 2013 in Washington D.C. (Photo by Allison Shelley/Getty Images)

  • Fine Dining

    The place card for U.S. President Barack Obama sits ready for the Inaugural Luncheon in Statuary Hall on inauguration day at the U.S. Capitol building January 21, 2013 in Washington D.C. (Photo by Allison Shelley/Getty Images)

  • Neatly-Folded Napkins

    Rocio Saucedo of Design Cuisine folds napkins in preparation for the Inaugural Luncheon in Statuary Hall on Inauguration day at the U.S. Capitol building January 21, 2013 in Washington D.C. (Photo by Allison Shelley/Getty Images)

  • Time To Eat

    Caterers set up for the Inaugural Luncheon in Statuary Hall on Inauguration day at the U.S. Capitol building January 21, 2013 in Washington D.C. (Photo by Allison Shelley/Getty Images)

  • Crystal Clear

    U.S. Sen. Chuck Schumer (D-NY), chairman of the Joint Congressional Committee on Inaugural Ceremonies, holds a crystal vase during a media briefing at the U.S. Capitol January 18, 2013 in Washington, D.C. (Photo by Mark Wilson/Getty Images)

  • A Toast

    U.S. Vice President Joe Biden toasts with Sen. Charles Schumer, Chairman of the Joint Congressional Committee on Inaugural Ceremonies, at the Inaugural Luncheon in Statuary Hall on inauguration day at the U.S. Capitol building January 21, 2013 in Washington D.C. (Photo by Allison Shelley/Getty Images)

  • Capitol Pomp And Circumstance

    President Barack Obama gives his speech after taking the oath of office during the 57th Presidential Inauguration ceremonial swearing-in at the U.S. Capitol on January 21, 2013 in Washington, D.C. (JEWEL SAMAD/AFP/Getty Images)

  • The National Mall

    People crowd the National Mall to view U.S. President Barack Obama taking the oath of office during the 57th Presidential Inauguration ceremonial swearing-in at the U.S. Capitol on January 21, 2013 in Washington, D.C. (SAUL LOEB/AFP/Getty Images)

  • The Presidential Motorcade

    The presidential motorcade travels down Pennsylvania Ave. during the presidential inauguration January 21, 2013 in Washington, D.C. (Photo by John Moore/Getty Images)

  • Take Your Seats

    Reserved seats for guests to view U.S. President Barack Obama taking the oath of office during the 57th Presidential Inauguration ceremonial swearing-in at the US Capitol on January 21, 2013 in Washington, D.C. (SAUL LOEB/AFP/Getty Images)

  • The Podium

    Placemarks are set for the Obama and Biden families before the presidential inauguration on the West Front of the U.S. Capitol January 21, 2013 in Washington, D.C. (Photo by Win McNamee/Getty Images)

  • Places, Please!

    Placemarks are set for the Obama and Biden families before the presidential inauguration on the West Front of the U.S. Capitol January 21, 2013 in Washington, D.C. (Photo by Win McNamee/Getty Images)

  • A Special Sunrise

    American flags are waved as people gather near the U.S. Capitol building on the National Mall for the Inauguration ceremony on January 21, 2013 in Washington, D.C. (Photo by Joe Raedle/Getty Images)

  • The Gingrich Family

    Former House Speaker Newt Gingrich and wife Callista Gingrich arrive during the presidential inauguration on the West Front of the U.S. Capitol January 21, 2013 in Washington, D.C. (Photo by John Moore/Getty Images)

  • You Go, Joe

    President Barack Obama, center and Beau Biden, Attorney of Deleware, right, watch as his father Joe Biden is sworn in at the ceremonial swearing-in at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013.

  • Any Minute Now

    President Barack Obama and Vice President Joe Biden look behind them on the West Front of the Capitol in Washington, Monday, Jan. 21, 2013, before their ceremonial swearing-in ceremony during the 57th Presidential Inauguration.

  • A Room With A View

    Vice President Joe Biden, left and President Barack Obama wait for their ceremonial swearing-in at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013.

  • I'm Here

    Caption contest, Anyone? Vice President Joe Biden, followed by House Minority Leader Nancy Pelosi of Calif., arrives on the West Front of the Capitol in Washington, Monday, Jan. 21, 2013, for the Presidential Barack Obama's ceremonial swearing-in ceremony during the 57th Presidential Inauguration.

  • All Smiles

    Flanked by Sen. Charles Schumer, D-N.Y., President Barack Obama and Vice President Joe Biden arrive at the ceremonial swearing-in at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013.

  • The Team

    President Barack Obama greets Vice President Joe Biden at the ceremonial swearing-in at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013.

  • Hillary Greets President Obama

    President Barack Obama is greeted by Secretary of State Hillary Clinton and former President Bill Clinton for his ceremonial swearing-in at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013.

  • The President Arrives

    President Barack Obama arrives for his ceremonial swearing-in at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013.

  • Bill 'Photo Bombs' Joe

    Vice President Joe Biden arrives at the ceremonial swearing-in of President Barack Obama at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013. Right is former President Bill Clinton.

  • Thumbs Up

    President Barack Obama flashes a thumbs up at the ceremonial swearing-in at the U.S. Capitol during the 57th Presidential Inauguration in Washington, Monday, Jan. 21, 2013.

  • President Obama Salutes

    This handout photo provided by NASA shows President Barack Obama saluting as he and Sen. Charles Schumer, D-N.Y., chairman of the Joint Congressional Committee on Inaugural Ceremonies, depart the White House for Capitol Hill in Washington, Monday, Jan. 21, 2013, and Obama's ceremonial swearing-in ceremony during the 57th Presidential Inauguration.

  • Hillary & Bill Arrive On The West Front

    Secretary of State Hillary Rodham Clinton and former President Bill Clinton arrive on the West Front of the Capitol in Washington, Monday, Jan. 21, 2013, for the Presidential Barack Obama's ceremonial swearing-in ceremony during the 57th Presidential Inauguration.

  • Even McCain Is Fired Up

    Sen. John McCain, R-Ariz. arrives on the West Front of the Capitol in Washington, Monday, Jan. 21, 2013, for the Presidential Barack Obama's ceremonial swearing-in ceremony during the 57th Presidential Inauguration.

  • Leon Panetta Arrives

    Defense Secretary Leon Panetta and Transportation Secretary Ray LaHood arrive on the West Front of the Capitol in Washington, Monday, Jan. 21, 2013, for the Presidential Barack Obama's ceremonial swearing-in ceremony during the 57th Presidential Inauguration.