HOW TO MIGRATE A LEGACY SYSTEM TO A NEW UI?

What is a legacy system? Most of the time it refers to a system or systems that cannot be changed to newer formats or its applications cannot be promptly updated. Being a crucial part of the company’s daily life, the legacy system always encompasses a variety of systems such as servers, operational systems, ERPs, CRMs, financial applications, web portals, etc. All of these systems may be hard to operate, and thus they need to be modernized.
Complete modernization is not the only choice for companies, as long as it takes a lot of time and material resources. Some companies are trying to combine new technologies with existing ones, implement new cutting-edge solutions (Blockchain, AI, Machine Learning), or modernize their technical part step-by-step to keep the whole system functional. What are the main reasons to migrate and how to accomplish that in the best way?