A dissertation is typically written at the undergraduate or doctoral level, while a thesis is written after completing a master's degree. Both involve extensive research, but a thesis is usually shorter and less comprehensive than a dissertation.