The bitterness comes from tannins. In general, the longer the tea is brewed the more tannins will be released. Also, it is important to start with good quality tea. Poor quality tea is more likely to be bitter.