A poorly focused lens can ruin an otherwise perfect astrophoto. Stars become bloated blobs (often surrounded by unsightly colour fringes) and fine details are lost. Imprecise focus also means longer exposures are required to record faint objects. And none of these problems can be easily fixed during post-processing — that's why it's important to get everything right under the night sky.
Your camera's autofocus system works well in bright daylight but will struggle to lock in focus in dim conditions. In fact, some excellent lenses are fully manual and lack autofocus capabilities. For best results, you need to manually focus with the aid of a feature called Live View. It's included in almost every digital camera sold these days. This option enables you to zoom in and examine a highly magnified image of a bright star or planet on your camera's rear display. This technique is the only way to guarantee consistent results at night.
To infinity… and beyond
To begin, try to get close to infinity focus by rotating your lens's