If your washing machine smells like rotten eggs, there may be hydrogen sulfide gas present, which is produced by bacteria.