AbstractRadio frequency (RF) systems tend to become congested and overused due to the increasing number of users, devices and the multiple technologies involved in their deployment. This leads to the downgrading of quality of service (QoS) further caused by interference with different signals. Optical Wireless communications (OWC) are emerging as a feasible alternative as they offer unlicensed, interference-free spectrum by using the frequency range located in the visible and invisible light spectrum. Its applications can be found in various fields such as healthcare, education, finance and industry 4.0. Moreover, it enhances the security and privacy of communications. Nevertheless, the limited spectrum in OWC also requires optimised resource allocation to support the QoS of different applications or users whilst lacking established infrastructure to manage this. To address these challenges, this paper proposes a novel 5G-LiFi framework able to ensure QoS requirements by introducing network slicing in Light Fidelity (LiFi) networks integrated with 5G infrastructure. This paper has developed and deployed a 5G-LiFi architecture capable of providing network slicing capabilities over the LiFi segment of the hybrid network. It allows a full control over the network traffic and tailored, improved QoS capabilities. The proposed solution has been empirically validated and evaluated in a realistic testbed employing real-world LiFi and 5G network equipment, and yielded promising results in terms of bandwidth, delay, jitter and packet loss. This work concludes that the use of heterogeneous networks integrating OWC with RF is a suitable solution and it can lead to a better use and exploitation of the different spectrums, improving the QoS offered to end-users.