The present invention relates to 2-indolinone derivatives which are capable of inhibiting protein kinases and histone deacetylases. The compounds of this invention are therefore useful in treating diseases associated with abnormal protein kinase activities or abnormal histone deacetylase activities. Pharmaceutical compositions comprising these compounds, methods of treating diseases utilizing pharmaceutical compositions comprising these compounds, and methods of preparing these compounds are also disclosed.