Deodoro was laid down by the French shipbuilding company Société Nouvelle des Forges et Chantiers de la Méditerranée in 1896, supervised by Admiral José Cândido Guillobel. Its construction was temporarily suspended by the Brazilians while they modified its design. It was launched on 18 June 1898, after a ceremony that was attended by representatives from Brazil, the French Navy, and a Russian gunboat. Its christening was accomplished with an electric button, which sent a signal to cut a cord and let a bottle of champagne break on the ship. At the beginning of the Spanish–American War (1898), officials from both participants traveled to France to inspect the incomplete Deodoro and sister ship Floriano in view of purchasing them for the conflict. Neither was close enough to completion to make such an acquisition worthwhile.[1]
Deodoro was completed in 1900, and its trials were successful, including a 24-hour trial with a mean speed of 14kn.[2] After the ship was handed over to Brazil, the ship left France en route for Brazil, stopping along the way in the Spanish Canary Islands. A nearby British warship, which was at that time engaged in the Second Boer War, suspected the ship of being a Boer-chartered privateer heading south to interfere with British merchant ships plying along the coast of southern Africa. Although the Brazilians were able to convince the British of their identity, they steamed with lights off for the next night or two in an effort to avoid further confusion with any other warships.[3] Deodoro arrived in Brazil on 18 February 1900.[4]
Deodoro saw its first action in 1904, when it shelled rebelling soldiers at the military school at .[4] Six years later, its crew rebelled as part of the Revolt of the Lash. The Brazilian Navy at the time was heavily segregated between white officers and broadly black or mulatto enlisted sailors, and the former would often violently punish the latter for even minor transgressions. Tensions came to a head in November 1910, when sailors aboard the new dreadnought rebelled, and the crews of Deodoro, another new dreadnought, a new cruiser, and several smaller vessels joined. The revolt ended peacefully, and the mutineers were granted an amnesty that was later cancelled.[5]
In 1912, the Brazilian Navy overhauled Deodoro in Rio de Janeiro, fitting a new propulsion system and armament.[6] In September and October 1913, the ship took part in a major naval exercise with the majority of the Brazilian fleet, which was observed by the country's president, naval minister, and other politicians.[4]
During the First World War, the navy placed Deodoro in its northern squadron, which was responsible for neutrality patrols in the area between the states of Amazonas (located up the Amazon River) and Sergipe. Deodoro, the detachment's flagship, was joined in this task by Floriano, two cruisers, two destroyers, and the six vessels of Brazil's Amazon River flotilla.[4] [7]
On 19 April 1924, Brazil sold the ship to the Mexican Navy, where it was renamed Anáhuac.[8] The Brazilians used the money gained (eight thousand contos) to purchase a submarine from Italy, .[9] No further upgrades were made to Anáhuac in its remaining service life, and the Mexican Navy sold it for scrap in 1938.[8]