West Indies head coach Stuart Law will take over at Middlesex from next season.
The former Australia batsman has agreed a four-year deal with the county and will begin his new job in January following West Indies’ tours of India and Bangladesh.
“It is a great privilege to be asked to coach Middlesex and to accept one of the plum jobs in world cricket,” he said.
“I have very much enjoyed my time with the West Indies and wish the staff and players every success.
“There is never a good time to leave but the opportunity to work with Middlesex for four years at the home of cricket was too good to decline.”
Law enjoyed a long playing career in county cricket with Essex, Lancashire and Derbyshire before moving into coaching.
After brief stints in charge of Sri Lanka and Bangladesh, the 49-year-old became West Indies head coach in January 2017 and led his team to a memorable Test victory at Headingley last summer.
Law will lead Middlesex in all formats, which means Daniel Vettori will stand down as Twenty20 coach.
Richard Johnson has been in charge of the 2016 champions in the County Championship since July, following Richard Scott’s departure.
Middlesex managing director of cricket Angus Fraser said: “We have always tried to recruit the right kind of person at Middlesex and we believe Stuart is the right man to build on the foundations laid over the past decade.
“He will provide a fresh voice and a fresh vision to inspire our players, and drive them towards our twin goals of promotion back to Division One of the County Championship and limited-overs success.”