The two-story, L-shaped stone home for the priests was most likely the earliest permanent structure. The structure functioned as the west and south boundaries of an interior courtyard. To house the mission Indians, a series of adobe barracks buildings were built, as well as a weaving workshop. A large, square, stone church was begun in 1724 but not completed until after the war. The original land grant for San Antonio de Béxar included all of what is now downtown San Antonio as well as other areas now part of Bexar County. In 1823, Texas became a republic and Bexar County was created, so the Alamo was needed to represent Texas in negotiations to secure its independence. During the war, Mexican troops under Santa Anna attacked the settlement on February 23, 1836. The battle that ensued is known as the "Alamo War". Only 24 Americans, including Davy Crockett, died defending their country's flag at the Alamo. However, the loss of life was greatly increased by Mexican soldiers who killed many prisoners during their retreat. After the battle, most of the survivors escaped north across the border into Mexico. However, some people stayed behind to help those who had been left behind. They included John R. Jones, who helped burn the bodies of the Mexican soldiers. For his action, Jones was made judge of the new county court. He also served one term as mayor of San Antonio before moving on.