MOSCOW, OCT. 4 -- President Boris Yeltsin today routed his rebellious opposition in the Russian parliament after a 10-hour barrage by tanks and armored personnel carriers that left dozens dead and the massive parliament building a blazing, smoke-blackened shell with nearly every window blown out.

As heavily armed paratroops took control of one floor after another, hundreds of unarmed and clearly exhausted "defenders" emerged from the building shortly before 5 p.m. local time (10 a.m. EDT), hands behind their heads in a sign of surrender, and were herded onto buses by Russian soldiers loyal to Yeltsin.

The crackle of gunfire from the still burning parliament resounded for several hours more as remnants of the hard-line rebels, many of whom had sworn earlier to defend the building to the death, refused to give in. Sniper fire also appeared to be coming from residential buildings near the burning parliament and more tanks were brought in to deal with it. By midnight the area around the parliament appeared quiet, if not calm.

The leaders of the rebellion, Vice President Alexander Rutskoi and parliamentary Speaker Ruslan Khasbulatov, surrendered after Yeltsin promised they would not be harmed. The two men, who defied last-minute efforts at compromise, were shown on television looking demoralized and shaken as they were led under guard from the parliament into custody. A Yeltsin aide said they will likely face prosecution for their involvement in what has been the two bloodiest days of street fighting in Moscow since the civil war that followed the 1917 Bolshevik Revolution.

Yeltsin moved swiftly tonight to tighten his grip on the city, imposing a citywide curfew from 11 p.m. until 5 a.m. The city center remained on a war footing as the restrictions went into effect, with tanks, armored personnel carriers and other military vehicles at key locations, but especially near the parliament, which continued to burn.

Yeltsin tonight also shut down at least seven hard-line newspapers, including Pravda, Dyen and Sovietskaya Rossiya, that have backed the militant nationalist and communist forces in their struggle against the Russian leader, and he reimposed censorship on all news organization for the first time since before the collapse of the Soviet Union in 1991.

Moscow City volunteer squads, acting on behalf of Yeltsin, took over the office of the rebel Officers Union and the Russian National Assembly, both of which have encouraged public uprisings against Yeltsin.

Rutskoi, a decorated veteran of the Afghan war, and Khasbulatov, once a close Yeltsin ally, were being held last night along with about two dozen other rebel legislators at Moscow's notorious Lefortovo prison, according to the Interfax news agency.

There were varied accounts of how many people were killed in Moscow's two days of violent confrontation. Russian television and Tass, quoting medical authorities, reported that more than 60 were killed and hundreds wounded during a battle Sunday night at the state television tower in northeast Moscow. Interfax news agency reported only 32 deaths overall in two days of clashes, and 369 wounded. After today's shelling of the parliament, witnesses reported seeing corpses in the hallways and rows of bodies stacked on the grounds.

{U.S. officials said one American was killed in the clashes and five wounded, the Associated Press reported. The American killed, who was not immediately identified, died outside the state television building, apparently trying to save a wounded journalist, according to U.S. Ambassador Thomas Pickering. Those wounded were a Marine guard at the embassy who was shot in the neck by a sniper, a New York Times photographer, two other journalists and another civilian.}

Authorities today also arrested the militant nationalist general Albert Makashov, who organized the parliament's armed resistance and led the Sunday raid on the television center. The three men who served as ministers of interior, defense and security for the parliament's rump government also were taken into custody tonight after troops stormed the parliament.

The Russian prosecutor's office announced it had issued warrants for the arrest of two hard-line legislators, Viktor Ampilov, head of the Communist Workers Party of Russia, and Ilya Konstantinov, who heads the militant anti-Yeltsin group Trudovaya Rossiya. Konstantinov's organization last May Day was accused of inciting a riot against police in which an officer was killed. Both had fled the parliament today, Russian security officials said.

Aides and supporters of Yeltsin said his measures against the press and opposition political groups and leaders did not signal a move toward authoritarian rule, but were necessary to restore Russia to democratic health after what they characterized as a communist-led uprising. There was strong sentiment among pro-Yeltsin politicians today to go after the last remnants of the Soviet system that persisted even after the collapse of the hard-line 1991 coup and the collapse of the Soviet Union four months later.

Yeltsin has repeatedly expressed frustration in the past few months at not having acted more decisively after the 1991 coup to wipe out all the old Soviet structures, which have regrouped over the past year and resisted him and his reforms with increasing aggressiveness.

A Moscow deputy mayor tonight called on Yeltsin to ban all local soviets, or councils, that across the country have formed the bulwark of opposition to him and his reforms. It was these soviets and their leaders that Khasbulatov and Rutskoi tried to rally against Yeltsin in the past few weeks, urging them into open rebellion. In some cases, such as in parts of Siberia, the legislative leadership condemned Yeltsin and called for civil disobedience to unseat him.

A first indication of Yeltsin's willingness to stay on a democratic path may be his decision on whether to go ahead as promised with elections for a new, two-house legislature on Dec. 12 and for the presidency on June 12. He has given mixed signals about whether he would run for reelection. A commission began meeting last week to organize the elections, although several members complained that the preparation time was too short.

Yeltsin set the election dates after ordering parliament dissolved on Sept. 21. It was this order that triggered the violent confrontation between the two sides that culminated in today's attack on the parliament building.

After Yeltsin threw up a tight police cordon last week around the parliament to force legislators to vacate the building, militant anti-Yeltsin demonstrators took to the streets, launching hit-and-run assaults on the police lines. The police, armed with shields and rubber sticks, managed to disperse the demonstrators, but over the days their numbers grew.

On Saturday night, the level of confrontation ratcheted up significantly when several thousand demostrators swarmed onto a main downtown street and closed it down by erecting barricades, lighting bonfires and throwing bricks when police came near. They dispersed only after Konstantinov urged them to conserve their strength for the next day, Sunday, saying they would try to storm the police barricades around the White House, as the parliament building is known.

Sunday was a beautiful autumn day here, sunny and cold, as the demonstrators gathered at 2 p.m. They had chosen to meet in October Square under a massive statue of Lenin, founder of the Soviet State. Crowd estimates varied but at least 7,000 people, many carrying red Soviet flags and Communist Party insignias, showed up. A much smaller group of riot police, equipped only with shields and rubber batons, stood a short distance away, forming a barricade.

The demonstrators, sensing their strength, surged through several police lines, marched to the parliament and broke through the police cordon there.

It proved to be a complete rout for the undermanned, underarmed police, who fell back in disarray and watched as demonstrators dismantled the barricades, seized police vehicles and weapons and overran a skyscraper housing the offices of Moscow's mayor next door after smashing through the front door with a truck. Leaders of the demonstrators proclaimed a "new revolution" for Russia as they planted a Soviet flag on the building.

It was then that Rutskoi took a fateful step, appearing on the balcony of the parliament and exhorting the jubilant throng not to stop but to take over the Kremlin and the television tower. Using police trucks and armored personnel carriers, the demonstrators, lead by Makashov, moved toward the central television network, which Rutskoi and his supporters had accused of pro-Yeltsin bias.

When the triumphant marchers arrived at the television tower, which was severely undermanned by police, they rammed a truck through its glass doors and began chanting, "Rats, come out!" The network went off the air as a newscaster was tearfully describing the beginnings of what was to become a bloody, all-night battle between demonstrators and defenders of the studio.

The battle there lasted about eight hours, until 3 a.m., with scores of people, including correspondents, caught in the crossfire. By morning, as the last of the fighting died down, at least 20 people were dead and dozens wounded. But pro-Yeltsin forces had reclaimed control over the devastated television studios.

By this time, disheartened democrats and Yeltsin supporters appeared convinced that the government might fall. Yeltsin flew by helicopter from his country house outside Moscow back to the Kremlin, but he no longer had access to national television to appeal to the people. When Russian television began broadcasting fitfully from a secret location, First Deputy Premier Yegor Gaidar appealed for all Russians to take to the streets to defend democracy and keep the country from being "turned back into a concentration camp" by communists.

Thousands of unarmed Muscovites responded to Gaidar's appeal, gathering in Red Square and in front of Moscow's City Hall. Perhaps more important, a gathering of top generals in the Defense Ministry decided to throw its support to Yeltsin, turning the tide of the day's dramatic events.

Within hours, the first tanks from a division inside the Moscow region rumbled through the same square where the hard-liners had gathered Sunday and moved into position to defend military headquarters. Other forces moved toward Moscow throughout the night, and just after daybreak, at 6:45 a.m. today, the assault on the parliament began. An acrimonious meeting between Yeltsin and parliamentary representatives ended with no agreement.

As armored vehicles moved into position, machine-gun fire from the parliament and artillery directed toward it broke the morning quiet. Soon the thunderous, thudding fire of tanks began, though in an effort to keep casualties down the army did not resort to the tanks more than a dozen times during the entire attack. One of the tank shots hit directly into the front of the parliament, shattering windows and starting a blaze that eventually consumed much of the 19-story building's upper floors.

As thousands of Muscovites converged on the area to watch the face-off, Yeltsin appeared on television for the first time since the street battles began to tell Russians that he had no choice but to act decisively to "preserve the peace."

He accused his adversaries of trying to launch a second October revolution, as the Bolsheviks did in 1917, through terror by an aggressive but determined minority. And he promised that "for them, and for those who carried out their orders, there is no forgiveness."

Inside the parliament, Khasbulatov and others apparently were stunned that Yeltsin had chosen to bring in the military and launch such an attack. "I never thought he would do this," the speaker, dazed and disheveled, told a Reuter reporter in the building as the assault was underway.

As chaos erupted in the building and casualties mounted, Rutskoi sent out a message that he was prepared to negotiate a surrender. Three hours after the assault began, the building was entirely surrounded by armored personnel carriers and tanks.

The military stopped firing at one exit to allow those willing to give up their arms a safe escape. A few people tickled out, but Khasbulatov ruled out any mass surrender, saying he would agree only to a cease-fire to negotiate.

Paratroops began taking control of the building, as plumes of black smoke billowed into the sky from shattered windows and the roof. Two helicopters armed with rockets circled the building but did not fire. Yeltsin's defense adviser Dimitry Volkogonov said a decision was made to go slowly, rather than to try a full-throttle attack on the resistance, in an effort to minimize bloodshed and protect special forces who, by mid-afternoon, had taken control of most of the parliament building.

By 3:30 p.m. Rutskoi and Khasbulatov made it clear they were ready to surrender if Yeltsin would guarantee their safety. Several people and groups have already stepped forward to claim credit for working out the deal that persuaded the two men to give up their arms and evacuate. One report suggested that several European ambassadors played a key role. Russian news agencies also have reported that Rutskoi, who in the past two days had returned to his military persona, was willing to give in after he spoke by telephone with Russian Defense Minister Pavel Grachev.

In any case, shortly before 5 p.m. an armored personnel carrier moved into position at the front entrance to the parliament and scores of "defenders" -- legislators, aides, free-lance militia and ultra-nationalists -- began streaming out, hands clasped behind their heads, to surrender. From another "safe" exit, parliamentary support staff emerged, free to go home.

Less than two hours later, as the flames burned out of control, charring the front of the building ever blacker, Rutskoi, Khasbulatov and the other leaders of the rebellion appeared. Surrounded by the soldiers who had defeated them, they boarded a bus to captivity.