Pakistan blocked the social networking website Twitter for much of Sunday because it refused to remove tweets considered offensive to Islam, said one of the country's top telecommunications officials.
The tweets were promoting a competition on Facebook to post images of Islam's Prophet Muhammad, said Mohammad Yaseen, chairman of the Pakistan Telecommunication's Authority. Many Muslims regard depictions of the Prophet, even favorable ones, as blasphemous.
The government restored access to Twitter before midnight Sunday, about eight hours after it initially blocked access. It was unclear whether the government reversed its decision because of action by Twitter or because of public criticism it received for its censorship.
Yaseen said Sunday afternoon that Pakistan's Ministry of Information Technology had ordered the telecommunications authority to block Twitter because the company refused to remove the offending tweets. In contrast, Facebook had agreed to address Pakistan's concerns about the competition, he said.
The ministry ordered Yaseen to restore access to Twitter on Sunday evening, but he did not know what led to the decision.
Officials from Twitter and Facebook were not immediately available for comment.
A top court in Pakistan ordered a ban on Facebook in 2010 amid anger over a similar competition. The ban was lifted about two weeks later, after Facebook blocked the particular page in Pakistan.
Even when Twitter was blocked Sunday, many people based in Pakistan continued to use the website by employing programs that disguise the user's location.
There was widespread criticism of the government's action by those on Twitter, who tend to be more liberal than average Pakistanis.