Sun & Moon Altar of the Sunne
Here the Sun and Ultra Sun climax plays out. On the altar platform Nebby evolves at last, caught in a forced battle as Solgaleo, the radiant lion the little Cosmog you protected all game was always going to become.
Altar of the Sunne is in Alola, with Vast Poni Canyon to the south.
HIGHLIGHTS
Pokemon Encounters
Sun's climb ends at Solgaleo, the Psychic and Steel lion legendary met in a forced level 55 battle atop the altar platform.
Solgaleo
Altar of the Sunne Guide
Catching it is how the story moves on, so no. Lillie asks you to catch Nebby and the game waits until you do, at level 55. Knock it out or run and it reappears in the same spot without you even leaving the area.
Lillie restocks you. Defeat Solgaleo or run from it and she hands over ten Poke Balls, and she'll keep doing that as often as you need, but only while your bag holds no balls at all.
Nebby is locked out of being shiny, so resetting at the Altar of the Sunne rerolls only its nature and its stats.
Either way you get another go, though the wait differs. Nebby reappears in the same room straight away at the altars. The four island guardians take longer, returning to their ruins once you re-enter the League and clear a Champion Title Defense.