SPOKANE, Wash. (AP) — Tom Foley was born in 1929, the year of the great stock market crash, and grew up in Spokane during World War II. These experiences shaped his viewpoint during a long political career, which culminated with him becoming the first Speaker of the House to hail from west of the Rocky Mountains.

Foley, who died Friday at the age of 84 of complications from a stroke, also became the first speaker to be booted from office by his constituents since the Civil War, suffering defeat during the 1994 "Republican Revolution." Cornell Clayton, director of the Foley Institute for Public Policy at Washington State University, said Foley's defeat signaled a change to the more confrontational politics of modern times.

"He was the last major leader to grow up in the Depression and World War II era," Clayton said. "They gave him a different perspective on viewing policy disputes."

Members of that generation worked in a more bipartisan manner, Clayton said. "They saw us all on the same team."

Foley served 30 years in the U.S. House, including more than five years in the speaker's chair. In that job, he was third in line of succession to the presidency, making him the highest-ranking public official in Washington state history.

Foley's wife, Heather, said he suffered a stroke last December and was hospitalized in May with pneumonia. He returned to his District of Columbia home after a week and had been on hospice care there ever since, she said.

He "was very much a believer that the perfect should not get in the way of the achievable," Ms. Foley wrote in a 10-page obituary of her husband. She said he believed that "half of something was better than none."

"There was always another day and another Congress to move forward and get the other half done," she wrote.

In a statement Friday, President Barack Obama said: "America has lost a legend of the United States Congress."

Foley, who grew up in a politically active family in Spokane, represented that agriculture-heavy area for 15 terms in the House.

As speaker, he was a key negotiator in the 1990 budget talks that led to then-President George H.W. Bush breaking his pledge to never raise taxes, an episode that played a role in Bush's 1992 defeat. Even so, Bush released a statement Friday lauding Foley.

"Tom never got personal or burned bridges," Bush said. "We didn't agree on every issue, but on key issues we managed to put the good of the country ahead of politics."

Also in 1990, Foley let the House vote on a resolution authorizing Bush to use force against Iraq for its invasion of Kuwait, despite "strong personal reservations and the strenuous objections of a good many" House Democrats, Bob Michel, an Illinois Republican who was House minority leader at the time, recalled Friday.

"But he granted our request for a vote because it was the right thing to do. He was that kind of leader," Michel said in a statement.

Though the politics of Foley's era was less sharp-edged than today, it was not without hardball. As he became speaker in June 1989, a Republican National Committee memo was circulated called, "Tom Foley. Out of the Liberal Closet," that said Foley's voting record was as liberal as that of openly gay Rep. Barney Frank, D-Mass.

Some lawmakers took the memo as hinting that Foley was gay, which he denied. The White House said then-President George H.W. Bush was "disgusted" by the incident, and Foley said he considered the episode closed.

Foley was also at the helm when, in 1992, revelations that many lawmakers had been allowed to overdraw their checking accounts at the House bank provoked a wave of anger against incumbents. In 1993, he helped shepherd President Bill Clinton's budget through the House.

He never served a day as a member of the House's minority party. The Republican capture of the chamber in the 1994 gave them control for the first time in 40 years and Foley, it turned out, was their prize victim.

He was replaced as speaker by his nemesis, Rep. Newt Gingrich, R-Ga., leader of a group of rebellious younger Republicans who rejected the less-combative tactics of established GOP leaders like Michel.

Foley was defeated in 1994 by 4,000 votes by Spokane attorney George Nethercutt, a Republican who supported term limits, which the speaker fought. Also hurting Foley was his ability to bring home federal benefits, which Nethercutt used by accusing him of pork-barrel politics.

On Friday, House Speaker John Boehner, R-Ohio, called Foley "forthright and warmhearted" in a written statement.

"Tom Foley endeared himself not only to the wheat farmers back home but also colleagues on both sides of the aisle," Boehner said.

House Minority Leader Nancy Pelosi, D-Calif., called Foley "a quintessential champion of the common good" who "inspired a sense of purpose and civility that reflects the best of our democracy."

Foley loved the classics and art, hobnobbing with presidents, and he had a fine stereo system in his Capitol office.

He also loved riding horseback in parades and getting his boots dirty in the rolling hills of the Palouse country that his pioneer forebears helped settle.

Foley studied at the feet of Washington state's two legendary senators, Henry M. Jackson and Warren G. Magnuson. "Scoop" Jackson was his mentor and urged his former aide to run for the House in 1964.

Foley worked with leadership to get plum committee assignments. Retirement, new seniority rules, election losses and leadership battles lifted Foley into the Agriculture Committee chairmanship by age 44. He eventually left that post, which he later called his favorite leadership position, to become Democratic whip, the caucus' third-ranking post.

Similar good fortune elevated him to majority leader, and the downfall of Jim Wright of Texas lifted him to the speaker's chair, where he served from June 1989 until January 1995.

"I wish I could say it was merit and hard work, but I think so much of what happens in a political career is the result of circumstances that are favorable and opportunities that come about," Foley told the AP in 2003.

He said his proudest achievements were farm bills, anti-hunger programs, civil liberties, environmental legislation and civil rights bills. Helping individual constituents also was satisfying, he said. Even though his views were often considerably to the left of his mostly Republican constituents, he said he tried to stay in touch.

Sen. Patty Murray, D-Wash., tweeted Friday, "Tom Foley was a tireless, dedicated public servant for WA & the nation. I wouldn't be where I am today w/o his support. He'll be missed."

Rep. Cathy McMorris Rodgers, R-Wash., the No. 4 House GOP leader who holds Foley's old eastern Washington seat, called him "an honorable leader and colleague" who was "highly regarded and respected by Democrats and Republicans."

After leaving Congress, he joined a blue chip law firm in Washington, D.C., and earned fees serving on corporate boards. Foley and his wife, his unpaid political adviser and staff aide, had built their dream home in the capital in 1992.

In 1997, he took one of the most prestigious assignments in diplomacy, ambassador to Japan. A longtime Japan scholar, Foley had been a frequent visitor to that nation, in part to promote the farm products his district produces.

"Diplomacy is not, frankly, very different" from the deal-making, consensus-building and common courtesy that a successful politician needs, he said.

In a statement, former President Clinton and former Secretary of State Hillary Clinton said: "Tom never forgot that principled compromise and respect for opposing viewpoints are essential foundations of our democracy — core convictions that also made him an outstanding Ambassador to Japan."

Foley's father, Ralph, was a judge for decades. His mother, Helen, was a teacher.

Foley attended Gonzaga Preparatory School and Gonzaga University in Spokane. He graduated from the University of Washington Law School and worked as a prosecutor and assistant state attorney general and as counsel for Jackson's Senate Interior Committee for three years.

Dan Evans, a Republican former governor and senator from Washington state, was among Foley's many fans.

"He was an unusually civil politician in an increasingly uncivil arena," Evans once said.