Close all Sources of Unwanted Sound
Make sure the windows of the space you are in is locked if there are disruptive sounds in the area. Close doors that could let sound in as well. Generator noises, car horns, phone beeps, etc. are some common disruptive sounds If you don’t live alone, get all the occupants to keep their voices low or inaudible. Sound travels like a light when using a professional microphone, so keep the noise sources under control.
Position your equipment correctly
Ensure your microphone is not too close to the wall. Sound from your voice echoes and may bounce off the wall back into the mic. The last thing you want is a visible echo in your vocals, except you, do not mind.
Keep your microphone away from the openings with noise, and avoid keeping the microphone too close to your standing area. Reduce the Volume of your microphone to a reasonable DB as well. It is always better to record with the mic volume low than to make it loud and record with all the loud noise as well. Additionally, it is important to reduce the volume of the beat while recording, to avoid it getting into the Wav file of your vocals.
Pad or Treat your room
The first two tips are not the safest bet for a noise-free area. There is a limit to what the noise gate effect on your DAW can do or correct positioning. First, making your space soundproof with treatment in strategic point works fine. Putting foam, wood, and other relevant material around your recording area is another way to go. Sound is likely to bounce around and even bounce off a bare floor. Heavy curtains and rugs are a third option for absorbing stray sound in your recording space.