Erdoğan has used foreign policy as a tool for domestic political survival, framing Turkey as a besieged nation fighting Western imperialists.