Turkey has lifted its ban on Twitter after the country's constitutional court ruled that it violated the right to freedom of expression and demanded restoration of access to social media.
The Turkish Telecoms Authority (TIB) has reversed its decision to block the microblogging site from its website.
Earlier, the Constitutional Court in Ankara said the block breached the country's constitution which grants everyone "the right to express and disseminate his thoughts and opinion by speech, in writing or in pictures or through other media, individually or collectively".
Turkey blocked access to Twitter in March, after Prime Minister Recep Tayyip Erdogan vowed to "eradicate" social media platforms in the country.
TİB said it had engaged in the drastic measure to protect "private life privacy" after the microblogging website ignored several Turkish court orders to withdraw online content.
The ban was implemented days before crucial local elections, when links of audio recordings and documents implicating Erdogan and other top officials in corruption were circulated online.
The government later blocked access to YouTube after a leaked audio recording of a secret government security meeting was posted.
Erdogan's ruling AKP party recorded sweeping victories in municipal elections over the weekend.
Allegations of election fraud circulated on social media, with some complaining that electricity blackouts in Ankara and other cities disrupted vote-counting. The outages were blamed on a cat by Turkey's energy minister Taner Yildiz.
Thousands of protesters from the main opposition party, the secular Republican People's Party (CHP), demanded a recount in the capital claiming their ballots were fraudulently miscounted. They were faced by riot police.