The invention discloses a pentahedron processing machine which comprises an X-axis platform, a Z-axis platform, a tool magazine device, a first rotating table, a second rotating table and a third rotating table. Three-dimensional space rotation of a work piece is carried out by utilizing the rotating functions of the three rotating tables, and a good operation interface allows the programming difficulty of a pentahedron processing technique to be reduced; a tool changing arm, along with a tool changing library, is adopted for tool management, so that tools can be changed quickly and randomly, and the processing efficiency of a machine tool can be improved; and the three hydraulically driven rotating tables are adopted, the first rotating table is a base table, the second rotating table and the third rotating table that are hydraulically driven are additionally arranged on the upper surface of the first rotating table, the first rotating table allows the work piece to rotate at the Z-axis, the second rotating table and the third rotating table allow the work pieces to rotate at horizontal shafts, through the rotation of the three rotating tables, processing equipment capable of processing the five surfaces of the work pieces is formed, and the work pieces can be exchanged, so that the processing efficiency is higher.