The present invention relates to certain tricyclic derivatives which are capable of inhibiting histone deacetylases. The compounds of this invention are therefore useful in treating diseases associated with 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.