3 7 ▁which ▁was ▁situated ▁close ▁to ▁the ▁city ▁of ▁Bal ens i ya . ▁ ▁The ▁Arag on ese ▁forces ▁re built ▁the ▁fort ifications ▁of ▁El ▁Pu ig , ▁building ▁a ▁wall ▁of ▁mud ▁and ▁stone ▁that ▁stretch ed ▁all ▁the ▁way ▁to ▁the ▁sea . ▁After ▁two ▁months , ▁the ▁def ensive ▁works ▁were ▁ready ▁and ▁the ▁castle ▁was ▁occupied ▁by ▁a ▁g arrison ▁of ▁ 1 0 0 ▁kn ights ▁and ▁many ▁more ▁pe as ants ▁commanded ▁by ▁Bern at ▁Gu ille m ▁I ▁d ' Ent ença , ▁a ▁relative ▁of ▁the ▁king . ▁ ▁According ▁to ▁the ▁Muslim ▁historian ▁I bn ▁Kh ald un , ▁from ▁ 1 6 ▁September ▁to ▁ 4 ▁September ▁ 1 2 3 6 , ▁the ▁Christians ▁had ▁attacked ▁the ▁Sar ac ens , ▁building ▁seven ▁enc amp ments , ▁two ▁of ▁which ▁were ▁concentr ated ▁against ▁Bal ans i ya , ▁Al - Y az irat ▁Su qu ar , ▁and ▁X àt iva . ▁While ▁Cast ilian ▁forces ▁took ▁the ▁city ▁of ▁C ór dob a ▁under ▁the ▁command ▁of ▁the ▁Cast ilian ▁king , ▁James ▁I ▁took ▁power ▁over ▁the ▁majority ▁of ▁the ▁Cast ili ans ▁in ▁his ▁area ▁of ▁operations . ▁After ▁building ▁a ▁castle ▁at ▁En esa ▁to ▁facil itate ▁his ▁bes ie ging ▁of ▁Bal ans i ya , ▁he ▁returned ▁home . ▁ ▁The ▁battle ▁Z ay yan ▁ibn ▁M ard an ish ▁must ered ▁the ▁people ▁of ▁X àt iva ▁and ▁the ▁J ú