Immediately after assuming control, Raymond was involved in conflicts with the Byzantine Emperor John II Comnenus who had come south to recover Cilicia from Leo of Armenia, and to reassert his rights over Antioch. The engagement lasted until 1137 when emperor John II arrived with an army before the walls of Antioch. Although the basileus did not enter the city, his banner was raised atop the citadel and Raymond was compelled to do homage. Raymond agreed with the emperor that if he was capable of capturing Aleppo, Shaizar, and Homs, he would exchange Antioch for them.