Expanding to the northwest toward the Baltic Sea proved to be much more difficult. In 1558, Ivan invaded Livonia, eventually involving himself in a twenty-five-year war against the Polish–Lithuanian Commonwealth, Sweden, and Denmark. Despite occasional successes, Ivan's army was pushed back, and the nation failed to secure a coveted position on the Baltic Sea.