In this study, hafnium-aluminum oxide (HfAlOx) was used as an effective active layer in a self-powered deep-ultraviolet (UV) photodetector. For the first time, we exploited the ferroelectric properties of crystalline HfAlOx to enhance device performance. The HfAlOx powder obtained at an annealing temperature of 850 °C exhibited the highest-intensity peak for the orthorhombic phase (o-phase), representing the ferroelectric property of the material. The HfAlOx particles were reduced to a small size using mechanical treatment to facilitate the preparation of a composite thin film with a polyethyleneimine (PEI) polymer matrix. First, the HfAlOx@PEI composite film-based photodetector demonstrated a remarkable on/off ratio of more than 103 and a rapid response (trise/tfall of 0.127/2.7 s) at zero bias under 254-nm UV illumination. Second, the photocurrent of the device was dramatically boosted under an external bias owing to the injection of carriers, supported by the ferroelectric effect of the o-phase HfAlOx. As a result, the external quantum efficiency and responsivity approached 2628 % and 5.37 A/W at −1 V bias, respectively. Furthermore, the device exhibited excellent photostability, demonstrating almost no change in the photocurrent after 1000 s of UVC irradiation. Our findings provide guidance for the preparation of optoelectronic devices, particularly self-powered high-performance UV photodetectors.