First, buy a slingshot from Nook's shop and keep it with you every single day. After a few days, you may spot a flying saucer drifting across the sky—shoot it down! Then search your town to find where it crashed.
You'll meet Gulliver, who's lost the parts to his spaceship. Gather all the missing pieces, return them to him, and he'll reward you with a gift.