The volume of trajectory data has become tremendously large in recent years. How to efficiently maintain and compute such trajectory data becomes a challenging task. In this paper, we propose a trajectory spatial and temporal compression framework, namely CLEAN. The key of spatial compression is to mine meaningful trajectory frequent patterns on road networks. By treating the mined patterns as dictionary items, we have the chance to encode a long trajectory by shorter paths, thus leading to smaller space cost. Meanwhile, we design an error-bounded temporal compression on top of the identified spatial patterns for much low space cost. Extensive experiments on real trajectory datasets validate that CLEAN significantly outperforms existing state-of-Art approaches in terms of both space saving and runtime of trajectory compression.