1: \begin{abstract}
2: 5G has to fulfil the requirements of ultra-dense, scalable, and customizable networks such as IoT while increasing spectrum and energy efficiency.
3: %
4: Given the diversity of envisaged applications and scenarios, %defined in 5G,
5: one crucial property for 5G New Radio~(NR) is flexibility: flexible UL/DL allocation, bandwidths, or scalable transmission time interval, and most importantly operation at different frequency bands.
6: %
7: In particular, 5G should exploit the spectral opportunities in the unlicensed spectrum for expanding network capacity when and where needed.
8: %
9: However, unlicensed bands pose the challenge of ``coexisting networks", which mostly lack the means of communication for negotiation and coordination.
10: %
11: This deficiency is further exacerbated by the heterogeneity, massive connectivity, and ubiquity of IoT systems and applications.
12: %
13: Therefore, 5G needs to provide mechanisms to coexist and even converge in the unlicensed bands.
14: %
15: In that regard, WiFi, as the most prominent wireless technology in the unlicensed bands, is both a key enabler for boosting 5G capacity and competitor of 5G cellular networks for the shared unlicensed spectrum.
16: %
17: In this work, we describe spectrum sharing in 5G and present key coexistence solutions, mostly in the context of WiFi.
18: %
19: We also highlight the role of machine learning which is envisaged to be critical for reaching coexistence and convergence goals by providing the necessary intelligence and adaptation mechanisms.
20: \end{abstract}
21: