Brazil’s former president Luiz Inácio Lula da Silva was greeted by overjoyed supporters as he was released from prison, where he was serving a 12-year corruption sentence, after a supreme court ruling.

Lula was greeted on Friday by supporters wearing T-shirts emblazoned with his face and waving red flags outside the federal police HQ in the city of Curitiba, where he had been imprisoned for 580 days.