Answer:
The Treaty of Paris.
Explanation:
The war officially ended four months later when the US and Spanish governments Signed the Treaty of Paris.