Vallejo was also named Military Commander of the Northern Frontier. He was responsible for guarding the northern border from incursion by foreigners and maintaining control over the Native population north of the Bay. Soldiers from the Presidio of San Francisco were moved to Sonoma. While the "El Cuartel de Sonoma" (barracks) was built to house troops, most of the space was used as a headquarters and for supply, equipment and weapons storage. Until the building was habitable the troops were housed in the buildings of the old Mission.