During the Spanish–American War, Brewster commanded Company B, 9th Infantry. He took part in the Siege of Santiago and the Battle of San Juan Hill. He was recommended for brevet promotion to captain for his conduct at San Juan Hill. Following his service in Cuba, Brewster continued to command Company B during the Philippine Insurrection.