Meanwhile, the Mexican forces in the state had time to prepare a defense against the Americans.