You need to know where the sun will be setting and set a spot to take a picture. You should arrive there earlier to give yourself enough time to set up. Focus the camera and use a tripod to ensure the camera is still. Keep shooting for different exposures and colors. Check out more tips on http://www.ehow.com/how_5328893_photograph-sunsets.html.