Sparse representation (SR)-based approaches and collaborative representation (CR)-based methods are proved to be effective to detect the anomalies in a hyperspectral image (HSI). Nevertheless, the existing methods for achieving hyperspectral anomaly detection (HAD) generally only consider one of them, failing to comprehensively exploit them to further promote the detection performance. To address the issue, a novel HAD method, which integrates both sparse representation and collaborative representation (SRCR), is proposed in this paper. To be specific, a SR model, whose overcomplete dictionary is generated by means of the density-based clustering algorithm and superpixel segmentation method, is firstly constructed for each pixel in an HSI. Then, for each pixel in an HSI, the used atoms in SR model are sifted to form the background dictionary corresponding to the CR model. To fully exploit both SR and CR information, we further combine the residual features obtained from both SR and CR model by the nonlinear transformation function to generate the response map. Finally, to preserve contour information of the objects, a postprocessing operation with guided filter is imposed into the response map to acquire the detection result. Experiments conducted on simulated and real data sets demonstrate that the proposed SRCR outperforms the state-of-the-art methods.