To develop a novel photocatalyst with high catalytic performance under sunlight, AgSCN/Ag3PO4/C3N4 heterojunction photocatalyst with Z-mechanism has been prepared, which demonstrates excellent photocatalytic performance for ibuprofen degradation. The catalytic activity of AgSCN/Ag3PO4/C3N4 is 1.5 and 3.3 times that of AgSCN/Ag3PO4 and Ag3PO4, respectively. The cyclic degradation number of AgSCN/Ag3PO4/C3N4 increases to seven because of the protection of AgSCN and C3N4 to Ag3PO4. The excellent photocatalytic performance of the AgSCN/Ag3PO4/C3N4 is attributed from the Z-mechanism with efficient separation efficiency of electron hole pair.