There are a number of difficulties with using a flash for sunset photography, but the bulk of the issues is split into two: balancing light and retaining color. The balancing of light is where you ensure that your flash does not overpower the natural light to such a degree that you lose all sense of the time of day.