Andy Robinson has resigned as Scotland head coach.
The Scottish Rugby Union confirmed Robinson's departure on Sunday morning, following the 21-15 loss to Tonga in Aberdeen on Saturday.
Robinson had been under contract until after the 2015 Rugby World Cup.
Scotland have lost 10 of their last 13 matches, including elimination from the World Cup at the group phase for the first time.
The Tonga defeat was the 19th in Robinson's 35 matches in charge and comes at the end of a calendar year which began with the RBS 6 Nations wooden spoon.
In a statement issued by the SRU, Robinson, who was appointed in June 2009, said: "It's been a privilege to be the head coach of Scotland and I'd like to thank the fans, players, coaches and staff for all their support over the years.
"I have thoroughly enjoyed working with the players and the coaches in the last few years.
"I believe I have left the team in a better position than when I took over and have great confidence in the players and the coaches for the future.
"I am very disappointed by our recent results but I have belief in the players to develop into a winning team."