In a statement, the Foreign Ministry said: "Journalist Peter Greste on 1 February has been released from prison and is leaving Cairo, Egypt.
"Congratulations to Peter Greste and his family on the release. It is a good day for all those who fought for freedom of expression and the his release throughout the world.
"I would like to say thanks to the Latvian and Australian diplomats, especially Latvian Ambassador to Egypt Iveta Šulca, who together with Australian colleagues has actively worked for Mr Greste's release," Foreign Minister Edgars Rinkēvičs said.
Release of Peter Greste is great news for him, family and all those who fought for his and media freedom, congratulations
— Edgars Rinkēvičs (@edgarsrinkevics) February 1, 2015
Greste a former correspondent for Reuters, CNN and the BBC was serving a seven-year term for "aiding terrorism" while working as a reporter for Al Jazeera in a trial regarded as a travesty by most of the world.