MiFID II is a comprehensive legislative framework established by the European Union to regulate financial markets and improve investor protection. It came into force in January 2018, replacing the original MiFID (Markets in Financial Instruments Directive) which was implemented in 2007.