The Edge of Democracy is a 2019 Brazilian documentary film directed by Petra Costa. The film follows the political past of the filmmaker in a personal and intimate way, in context with the first mandate of President Lula until the process that culminated in the impeachment of Dilma Rousseff, analyzing the rise and fall of both presidents and the consequent sociopolitical upheavals that then swept the country.