The Manhattan district attorney's office warned the microblogging site that it would be guilty of contempt of court if it continued to withhold tweets by protester Malcolm Harris.
Harris, who has been charged with disorderly conduct, claims that New York police lured Occupy protesters onto the Brooklyn Bridge so they could be arrested for obstruction of traffic.
The tweets that have now been surrendered are believed to contain information refuting this allegation.
Twitter spent months denying the district attorney's office access to the data, arguing that to turn it over was a violation of privacy laws.
"We are disappointed that Twitter is essentially giving up the fight," Harris's attorney Martin Stolar said following the news that the prosecution will be granted access to his client's account.
Harris, one of 700 protesters arrested during the demonstration in October last year, denies the charges against him. His trial is scheduled to begin in December.