1845, imitative of the sound made by a small bird. As a verb by 1872. Related: Tweeted; tweeting. As the word for what one does on the Twitter microblogging service, by 2007.
the small bird was tweeting in the tree