Ultraviolet (UV) detector based on β-Ga₂O₃/p-GaN was fabricated in this paper. The growth process involved deposition of amorphous Ga₂O₃ layer by means of magnetron sputtering and conversion of β-Ga₂O₃. The obtained detector displays excellent UV sensing properties which covers Ultraviolet A(UVA)/Ultraviolet C(UVC) region with fast response. It will provide a new route to fabricate β-Ga₂O₃/p-GaN heterostructure for applications in broadband ultraviolet sensing.