A dialect is usually spoken by people who live in a certain region of a country. Those people speak their mother tongue in their own individual way. For example, many Scottish people have a dialect.
An accent usually describes the way people pronounce words of a language that is different from their mother tongue. For example, Arnold Schwarzenegger speaks English with an Austrian accent.