On October 17, Mirabeau B. Lamar, the second president of the Republic of Texas, and his cabinet arrived in the new capital city of Austin. Lamar had appointed Edwin Waller to lay out the new capital at the site of the community of Waterloo, on what was then the Indian frontier, as the first step in a grand scheme to extend the republic all the way to the Pacific Ocean. When Sam Houston was elected president for the second time, in 1841, he feared a Mexican attack on Austin. Houston declared Washington-on-the-Brazos the capital of the republic and ordered the government archives removed from Austin, but his order touched off the Archive War, and Austin was ultimately reaffirmed as capital in 1844. Lamar is said to have selected Waterloo as the site for the new capital while on a scouting trip on land overlooking the current site of Pioneer Farms.