With the downfall of the navy and Santiago, Spain knew not what to do next, and gladly received the terms of peace offered by President McKinley and his advisers. The terms were accepted on August 9, and thus the short but sharp war came to a termination. By the treaty of peace Cuba was given her liberty, and Porto Rico and the Philippines passed into the possession of the United States.