It lost its remaining colonies in the Pacific and the Caribbean, notably the Philippines and Cuba. Almost all of the other Spanish dominions in Latin America had already achieved independence.
There were more goods available than there was demand for them.
They believed that expansion went against American ideals.
Steamships
Resented American control of the economy
It made it dangerous for opponents of the war