Use the craftable Celestial Sigil in any biome, at any time of day. Combine 20 Solar Fragments, 20 Nebula Fragments, 20 Vortex Fragments, and 20 Stardust Fragments at an Ancient Manipulator to create the Sigil, then activate it to summon the Moon Lord.