In 2009, José Mujica, a former left-wing guerrilla leader (Tupamaros) who spent almost 15 years in prison during the country's military rule, emerged as the new president as the Broad Front won the election for a second time. Abortion was legalized in 2012, followed by same-sex marriage and cannabis in the following year.