It provided a blueprint for governments, international organisations and other stakeholders to ensure that host communities got the support they needed and that refugees could lead productive lives.
Kenya adopted the Comprehensive Refugee Response Framework as one of the pilot countries in 2017.
The Dadaab complex is illustrative of how the changes in refugee policy have worked - and not worked.
The aim of both the Global Compact on Refugees and the Comprehensive Refugee Response Framework was to bring refugees in from the fringes of society to enable them to benefit from national education, health and employment opportunities.
These prioritise job and life skills that refugees could use whether they remain in Dadaab, resettle in another area of Kenya, or move back to Somalia.