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 way, in context with the first term of President Lula and the events leading to the impeachment of Dilma Rousseff, analyzing the rise and fall of both presidents as well as the 2014 socio-political crisis that swept Brazil.