As a political center of the country, Rio concentrated the political-partisan life of the Empire. It was the main stage of the abolitionist and republican movements in the last half of the 19th century. At that time the number of slaves was drastically reduced and the city was developed, with modern drains, animal trams, train stations crossing the city, gas and electric lighting, telephone and telegraph wiring, water and river plumbing. Rio continued as the capital of Brazil after 1889, when the monarchy was replaced by a republic.