Saudi Arabia and Turkey are both strong supporters of the opposition forces in Syria and have been building strong military ties.
Turkey participated in military drills in Saudi Arabia this year. Riyadh has deployed warplanes at a Turkish air base as part of the anti-Islamic State coalition.
Talks during the king's three-day visit were expected to focus on Syria and other regional issues.