There were a number of events that led to the United States declaring war on Spain. These include the attack on the USS Maine, the growing conflict in Cuba, and the outbreak of the Spanish-American War. The United States felt that it needed to intervene in order to protect its interests and to support the Cuban people in their fight for independence.
_____________________________________________
Let me know if there are any questions regarding my answer.