Turkey has labelled Twitter "biased" and said it had been used for "systematic character assassinations" of Prime Minister Tayyip Erdogan's government, a day after it was banned.

The Turkish authorities blocked Twitter late on Thursday, hours after Mr Erdogan vowed to "wipe out" the social media service during the campaigning period for local elections on 30 March.

Leading condemnation from Western governments and rights organisations, the White House said the Twitter ban undermined democracy and free speech.

The site remained blocked in Turkey. Those trying to access Twitter found an internet page carrying court rulings saying that the site had been blocked as a "protection measure".

Many Turks reported difficulties in accessing not just Twitter but the internet as a whole, according to media reports and comments on social media.

Mr Erdogan's office said in a statement that the ban on Twitter was in response to the company's "defiance" in failing to comply with hundreds of court rulings since last January.

"Twitter has been used as a means to carry out systematic character assassinations by circulating illegally acquired recordings, fake and fabricated records of wiretapping," the prime minister's office said.

In recent weeks, audio recordings have been released via Twitter on an almost daily basis purporting to be telephone conversations between senior government members and businessmen that reveal alleged corruption.

"It is difficult to comprehend Twitter's indifference, and its biased and prejudiced stance. We believe that this attitude is damaging to the brand image of the company in question and creates an unfair and inaccurate impression of our country," the statement from Mr Erdogan's office said.

Similar measures have been taken on the same grounds in other countries to prevent violations of personal rights and threats to national security, it added.

Mr Erdogan is battling a corruption scandal that he says is a plot to undermine him by a US-based, Turkish Islamic cleric Fethullah Gulen.

Mr Gulen is a former ally whose network of followers include influential members of Turkey's police and judiciary. Mr Gulen denies orchestrating the graft investigation.

Mr Erdogan's government has responded to the scandal by tightening controls of the internet and the courts and reassigning thousands of police and hundreds of prosecutors and judges, often demoting them.