The present invention addresses the problem of providing an engine device to be mounted on a working machine, said engine device being constructed such that a support structure for multiple or a single exhaust gas purification case (75, 151) and the like can be simplified, and the multiple or single exhaust gas purification case (75, 151) can be easily attached to a working vehicle such as an agricultural machine or a construction machine. In this engine device to be mounted on a working machine, multiple or a single exhaust gas purification case (75, 151) for treating the exhaust gas of a diesel engine (14) is provided, and an exhaust gas inlet port of the exhaust gas purification case (75, 151) is connected to an exhaust pipe (119) of the diesel engine (14). The engine device is constructed such that an engine compartment frame (91) is provided on a traveling machine body (1), an engine compartment (97) is formed by the engine compartment frame (91), and the diesel engine (14) is installed inside the engine compartment (97), and is equipped with an exhaust gas purification unit frame (114) that secures the multiple or single exhaust gas purification case (75, 151) as one unit, said exhaust gas purification unit frame (114) being detachably mounted either on the diesel engine (14) or on the engine compartment frame (91).La présente invention vise à procurer un dispositif de moteur destiné à être monté sur une machine de travail, ledit dispositif de moteur étant construit de telle sorte quune structure de support pour des enceintes de purification de gaz déchappement multiples ou unique (75, 151), et analogues, peut être simplifié, et que les enceintes de purification de gaz déchappement multiples ou unique (75, 151) peuvent être facilement attachées à un véhicule de travail tel quune machine agricole ou une machine de construction. A cet effet, linvention porte sur un dispositif de moteur, lequel dispositif est destiné à être monté sur une machine de travail, et da