After the capture of Jerusalem at the end of the First Crusade in 1099, the Canons Regular of the Holy Sepulchre were established to take care of the church. The men in charge of securing its defence and its community of canons were called . Together, the canons and the milites formed part of the structure of which evolved into the modern Equestrian Order of the Holy Sepulchre of Jerusalem. Baldwin I, the first king of Jerusalem, laid the foundations of the kingdom and established its main institutions on the Norman-French pattern as a centralised feudal state. He also drew up the first constitution of the order in 1103, modelled on the chapter of canons that he founded in Antwerp prior to his departure, under which the Latin Patriarch of Jerusalem (who had supplanted the Greek Orthodox patriarch) appointed knights in Jerusalem at the direct service of the crown, similar to the organisation of third orders. Adopting the rule of Saint Augustine, with recognition in 1113 by Papal Bull of Pope Paschal II, with the attached, it is considered among the oldest of the chivalric orders. Indications suggest that Hugues de Payens (c. 1070–1136) was among the Milites Santi Sepulcri during his second time in Jerusalem in 1114–16, before being appointed "Magister Militum Templi", establishing the Knights Templar.