The ground under the city was a farm before it was a capital. In 1701 a bandeirante from São Paulo, João Leite da Silva Ortiz, arrived leading a gold-rush expedition and set up a farm called Curral d'el Rey, the King's Corral. Farms and a village grew around it.
Travellers coming from the São Francisco River region had to pass through the village on their way south. They stopped at a small wooden chapel to pray for a safe trip, and named it for Our Lady of the Good Journey. That saint, Our Lady of Boa Viagem, is the city's patron today, and the cathedral that replaced the old chapel carries her name.
Ouro Preto, the old state capital, was tied to the empire and to the age of mining, and the republicans of the Inconfidência Mineira never liked that. When Brazil became a republic in 1889, the state wanted a new capital to match. In 1893 governor Afonso Pena chose Curral del Rey, partly for its climate and terrain, and renamed it Cidade de Minas.
The urbanist chosen to design it was Aarão Reis, who drew a grid of avenues cut by diagonals, with streets named after Brazilian states and Indigenous peoples. The planners drew on Washington, D.C. Cidade de Minas opened in 1897 with many buildings unfinished, because a deadline had been set. To fill it, the government gave out free lots and building funds.
The name changed to Belo Horizonte in 1906, after the ridge that closes the view. The original plan kept workers out of the central area, which is ringed by Avenida do Contorno. That area was reserved for government employees, which is why one neighbourhood is called Funcionários. Everyone else built outside the ring, and the city grew more than its planners had counted on.
In the 1940s the mayor, Juscelino Kubitschek, gave a young Oscar Niemeyer the Pampulha project: a casino, a church and a lake. Between them, the mayor and the architect shaped much of the avenues, lakes and parks you see now. Kubitschek soon became president, and the modern style first tried at Pampulha was developed further in Brasília.
Two World Cups passed through. The city was one of the host cities in 1950 and again in 2014, when Brazil lost 7-1 to Germany at the Mineirão. In 2010 the state government moved to the Cidade Administrativa just outside the city, and the old palaces on Praça da Liberdade began to become museums.