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).