unit 20 b the pallet mounting unit 20 a the pallet p or the work w for example the removed waste drops through the waste removal hole 12 a onto the conveyor belt 52 whereby the waste is conveyed out from the working area and recovered into the collection box 55 the first table rotation drive mechanism not shown in the figures then again swivels the support unit 20 b of the table 20 on the b axis to the upright horizontal position and the pallet changing device 45 changes the pallet p through the pallet changing opening 14 a in the right sidewall 14 of the bed 11 in a machine tool 1 according to this embodiment of the invention the table 20 is disposed inside the space enclosed by the three sidewalls 13 14 15 of the bed 11 both ends of the long sides of the first saddle 16 are supported on top of the right and left sidewalls 13 and 14 to move freely on the y axis the second saddle 17 is disposed movably on the x axis inside the frame of the first saddle 16 and the spindle head 18 is disposed movably on the z axis inside the through hole 17 b of the second saddle 17 as a result the first saddle.