President Bush has declared that spreading democracy in Iraq, the Middle East and other trouble spots will lead to a more peaceful world.
But as Hamas' victory in the Palestinian elections illustrates, holding elections is not always a simple path to stability.
"This is a very risky process, promoting democracy in the Arab world, where Islamist parties are the only legitimate alternative," said Haim Malka, a fellow with the Middle East program at the Center for Strategic and International Studies in Washington.
Recent history shows the pro-American side doesn't always win elections in the Arab world. Far from it: Besides Hamas, which has roots in the Islamist movement and Palestinian nationalism, Islamic parties have done well in recent elections in Egypt, Morocco, Iraq and elsewhere.
"Hamas' landslide victory cannot be seen in isolation from what is happening in several Arab and Muslim countries," said Fawaz Gerges, an ABC News Middle East analyst and author of "The Far Enemy: Why Jihad Went Global."
"Whether in Iraq, Egypt, Pakistan, Jordan, Lebanon, Saudi Arabia, and now [the] Palestinian territories, Islamists have exposed the unpopularity and dismal failure of existing secular, authoritarian governments."
The most explosive example from recent history may be Algeria, where the Islamic Salvation Front won a first-round election victory in December 1991, only to have further balloting halted. An army crackdown targeted the Islamists and fueled a civil war that claimed more than 100,000 lives, according to the CIA's World Factbook.
In other parts of the world, unsavory characters -- including Adolf Hitler -- have gathered power through popular elections. But the repressive political history of the Middle East may create special circumstances.
"This [Palestinian election] should be a wake-up call that the only viable alternative in the Arab world at the moment is Islamist parties," Malka said, "because the regimes that the U.S. has supported have imprisoned and harassed all secular [opposition] voices."
Noah Feldman, a New York University professor and author of "After Jihad: America and the Struggle for Arab Democracy," suggested past repression may not be the only reason for the success of Islamic parties at the polls.
"The reason the Islamists do well in these elections," he said, "is Islam is seen as a solution that has never been tried, and people will continue to support it until it gets a fair shake in government."
Speaking to the media Thursday, President Bush seemed somewhat philosophical about the Palestinian elections and the victory of Hamas, which the United States and Israel have called a terrorist group.
"When you give people the vote, you give people a chance to express themselves at the polls," Bush said. "And if they're unhappy with status quo, they'll let you know."
But Bush and other officials suggested the United States would not deal with Hamas unless the group softened some of its past stances.
"A political party that articulates the destruction of Israel as part of its platform is a party with which we will not deal," Bush said.