The role of a symbol table in an assembler is to keep track of all identifiers or symbols in a program's source code. It stores and organises information like variable names, function names, classes, and labels, thus facilitating their efficient lookup and retrieval during assembly.