Based on Michel Foucault's reflections in the late 1970s and the more recently developed notion of “algorithmic governmentality”, understood as a new regime of power and knowledge based on the collection, mining and crossing of large amount of data, this article intends to analyze critically the so-called “smart cities”, in which infrastructure and services are linked in a supposedly more streamlined and efficient way, finally offering the dreamed well-being and happy life. This utopia of social organization will be associated with a new form of political rationality and strategy of government by means of algorithms, which raise important and disturbing questions. In this work, we will highlight the ability of algorithms to govern us, in order to conduct our behaviors and structure the field of possible actions. And the focus of this article will be on the tension between freedom and control inscribed in this new governmentality, which acts more directly on data, relations and environments.Partindo das reflexões de Michel Foucault no final dos anos 1970 e da noção desenvolvida mais recentemente de “governamentalidade algorítmica”, entendida como um novo regime de poder e saber baseado na coleta, mineração e cruzamento de grandes volumes de dados, o presente artigo pretende analisar criticamente as chamadas “cidades inteligentes” (smart cities), nas quais a infraestrutura e os serviços são interligados de maneira supostamente mais racionalizada e eficiente, oferendo finalmente o sonhado bem-estar e a vida feliz. Essa utopia de organização social será associada a uma nova forma de racionalidade política e estratégia de governo por meio de algoritmos, que colocam importantes e inquietantes questões. Neste trabalho, ressaltaremos a capacidade que os algoritmos possuem de nos governar, no sentido de conduzir nossas condutas e estruturar o campo das ações possíveis. E o foco deste artigo recairá sobre a tensão entre liberdade e controle inscrita nessa nova governamentalidade, que tem por objeto mais imediato os dados, as relações e os ambientes