1.Make sure you have a point of interest, and your subject can be recognized.
2.. Think about lighting. Basically you need to reverse any concepts of photography you have learned in the past. For example you should have more lighting in your background than in the forground where your subject is. Ideal lighting for this would be sunrise or sunsets but artifical lighting works as well.
3. Make sure your flash is off.
4. Make sure you don't overlap your subject with other objects. There needs to be a clear distinction of your subject.
5. If shooting in auto mode, you will need to trick your camera into the right settings. To do this, aim for the brightest area of your frame, and then press your shutter halfway down. Hold it and then move your aim to your subject and press it the rest of the way down. This doesn't always work. It can effect your clarity as well. If not, start with a small aperture and work you way up until you get just the right setting.
6. Don't be afraid to play around with your aperture and shutterspeed. There are many different settings for sunrises and sunsets, so you can't go wrong by changing them up a bit.
7. Take multiple shots. A sunset or sunrise is constantly changing.