KATHMANDU, Nepal - Nepal's legislators abolished the monarchy and declared the country a republic Wednesday, ending 239 years of royal rule in the Himalayan country.
The newly elected assembly, led by the former communist rebels, adopted the resolution at its first meeting by an overwhelming majority. King Gyanendra has been given 15 days to leave his palace in central Kathmandu.
Across Kathmandu, young men marched with red flags as Nepalis celebrated what many see as the culmination of a two-year peace process with the rebels that began after weeks of unrest forced the king to restore democracy.
Near the convention centre where the Constituent Assembly was meeting, thousands chanted "Long Live the Republic!'' and denounced Gyanendra. While the celebrations were largely joyous and peaceful, police at one point used tear gas to disperse a crowd that gathered too close to the building.
There was no immediate reaction from the palace on the resolution. The palace has rarely commented on political developments in Nepal since Gyanendra was forced to end his royal dictatorship.
The country's leading politicians have in recent days threatened to forcibly remove him from his palace if he refuses to go peacefully.
But in an apparent bid to defuse the potential standoff, the assembly was giving the king 15 days to vacate the palace in central Kathmandu, said Bimalendra Nidhi of the centrist Nepali Congress, the second largest party in the assembly.
Nidhi made the comments after his party met with the Maoists -- former insurgents -- who hold the most seats in the assembly and are expected to lead the country's new government.
The Maoists gave up their 10-year fight for a communist Nepal not long after, and the election of the assembly in April marked the culmination of the peace process with the former insurgents.
The assembly is charged with governing Nepal while it rewrites the constitution. On Tuesday, 575 of its members were sworn in.
Another 26 members are still to be appointed, and last-minute talks among the political parties on filling those seats and how much power the newly created presidency would have, and who should fill the job, forced the assembly to postpone its first meeting until Wednesday evening.
The political parties have long made it clear that their first act would be to declare Nepal a republic and do away with the 239-year-old Shah dynasty.
But getting rid of the monarchy is in many ways the least of the new government's problems, as evidenced by a string of small bombings that hit Kathmandu this week, including two Wednesday. All the bombs -- none of which has caused any serious injuries or deaths -- appeared to be aimed at pro-republic politicians and activists.
Authorities deployed 10,000 policemen in Kathmandu to head off more violence and banned rallies around the palace and the convention centre.
The Maoists, meanwhile, say 20,000 volunteers from their youth wing are in Kathmandu to help control the celebrations. But that hasn't eased fears of violence because the young Maoists regularly are accused of intimidating, roughing up and sometimes killing opponents.
The Maoists have promised to bring sweeping change to Nepal, which in many places more closely resembles medieval Europe than a modern nation.
If Gyanendra peacefully leaves the palace, he is expected to move to the palatial private Kathmandu home where he lived before assuming the throne in 2001.
He ascended to the throne following a massacre at the palace in which a gunman, allegedly the crown prince, gunned down King Birendra and much of the royal family before killing himself. Gyanendra, the dead king's older brother, then took the throne.