Mechanical keyboards have individual switches for each key on the board, whilst rubber dome keyboards are pretty much 1 large switch, which is lower quality. Mechanical keyboards also give you features such as N key rollover, so you can push mulitple keys on the board at once and all them register without the daft beeping noise in windows being sounded. This is very good for games especially.
Rubber dome keyboards are rated to last around 10 million clicks whilst mechanical are rated to last 50 million per switch and are very solidly built.