Ejea de los Caballeros (; ; commonly known simply as Ejea) is a town and municipality in the province of Zaragoza, part of the autonomous community of Aragon, Spain. It is one of the five main towns in the Comarca de las Cinco Villas ("Shire of the Five Villages"). The five villages are Ejea de los Caballeros itself, Sos del Rey Católico, Uncastillo, Sádaba and Tauste.