By the time of the Spanish American War of 1898, the Spanish empire of the Golden Age had been whittled to insignificance.
By 1898 the Spanish empire became largely insignificant.
By the Spanish American War, Spain thrived in its Golden Age.