Surrendering on May 17, 1846, after the Battle of Resaca de la Palma, Matamoros remained an important American supply base and staging area until the end of the War.