Typically it's not a good idea to put a shag rug in the washing machine. Usually, we just shake it out as much as we can, vacuum it, then do a spot clean with carpet cleaner as needed.