In one shtick, Stewart and his associates queried some crowd-goers to identify themselves by category, eliciting answers from attendees such as “half-Mexican, half-white,” “American woman single” and “Asian-American from Taiwan.”

“It’s a perfect demographic sampling of the American people,” Stewart cracked. “As you know, if you have too many white people at a rally, your cause is racist. If you have too many people of color, then you must be asking for something — special rights, like eating at restaurants or piggy back rides.”

The event sought in part to be a counterpoint to the “Restoring Honor” rally in August by Glenn Beck, the Fox News commentator popular among conservatives and tea party supporters. Beck’s rally, which had strong religious overtones, drew some protests from civil rights supporters.

Egged on by the hosts, Ozzy Osbourne and Yusuf Islam, formerly known as Cat Stevens, engaged in something of a battle of the bands, the heavy-metal rocker and the folkie interrupting each other.

The crowds — easily tens of thousands strong — were festive, goofy, disillusioned with the state of politics if not the nation, and ready to play nice at a gathering called as a counterweight to all the shouting and flying insults of these polarized times. But there were political undertones, too, pushing back against conservatives ahead of Tuesday’s election.

Slogans urged people to “relax.” But also: “Righties, don’t stomp on my head,” a reference to a Republican rally in Kentucky at which a liberal activist was pulled to the ground and stepped on. And, “I wouldn’t care if the president was Muslim.”

Shannon Escobar, 31, of Bangor, Pa., came with a group of 400 people on buses chartered in New York. A supporter of President Barack Obama in 2008, she said she’s tired of nasty rhetoric from both sides and disenchanted with lack of progress in Washington.

“I want to see real change — not Obama change,” she said. “We need a clean slate and start over with people really working together.”

The rally generated extensive buzz on the Internet, with more than 226,000 people on a Facebook page created for the event saying they would attend. The liberal Huffington Post was sending a caravan of 10,000 people on 200 buses from New York, while TV talk show host Oprah Winfrey expressed her support by providing travel expenses to a “Daily Show” studio audience of about 200 members so that they could attend.

Comedy Central’s park permit puts the crowd estimate at 60,000. There were plans for satellite rallies in cities including Los Angeles, Chicago, Denver and Honolulu.

Stewart and Colbert encouraged attendees to bring signs with slogans such as “Real patriots can handle a difference in opinion,” “It could be worse but let’s not make it that way,” and “Death to Nobody.” Organizing for America, Obama’s political operation based at Democratic National Committee headquarters, was setting up a “Phone Bank for Sanity” after the rally to urge people to vote on Tuesday.

Organizers insisted the Rally to Restore Sanity and/or Fear wasn’t about politics. Still, supporters and left-leaning advocacy groups hoped it would rekindle some of the voter enthusiasm for Democrats seen in 2008, particularly among young adults.

Stewart is popular especially with Democrats and independents, a Pew Research Center poll found. Colbert of “The Colbert Report” poses as an ultraconservative, and the stage Saturday was stacked with entertainers associated with Democratic causes or Obama’s 2008 campaign.

Even so, Stewart said the day was about toning down anger and partisan division. “Shouting is annoying, counterproductive and terrible for your throat,” he said on his website.