A three-dimensional shaping apparatus comprising: a discharge mechanism discharging a shaping material; a table on which the shaping material discharged from the discharge mechanism is stacked; a tilting mechanism tilting the discharge mechanism with respect to the table; and a control portion controlling the discharge mechanism and the tilting mechanism, wherein the discharge mechanism includes a melting portion melting a material to be used as the shaping material, a supply flow path through which the shaping material supplied from the melting portion flows, a first branch flow path and a second branch flow path to which the shaping material is supplied from the supply flow path, a coupling portion coupling the supply flow path with the first branch flow path and the second branch flow path, a first nozzle communicating with the first branch flow path and a second nozzle communicating with the second branch flow path, and a valve mechanism provided in the coupling portion, the first nozzle and the second nozzle are disposed in a direction in which a central axis of the first nozzle and a central axis of the second nozzle are separated from each other as going toward the table, the control portion controls the valve mechanism of the discharge mechanism to switch between a first state in which the supply flow path and the first branch flow path communicate with each other and the supply flow path and the second branch flow path are blocked from each other and a second state in which the supply flow path and the second branch flow path communicate with each other and the supply flow path and the first branch flow path are blocked from each other, and the control portion controls the tilting mechanism so that in the first state, the first nozzle is brought closer to the table than the second nozzle and in the second state, the second nozzle is brought closer to the table than the first nozzle. a discharge mechanism discharging a shaping material; a table on which the shaping material discharged from the discharge mechanism is stacked; a tilting mechanism tilting the discharge mechanism with respect to the table; and a control portion controlling the discharge mechanism and the tilting mechanism, wherein the discharge mechanism includes a melting portion melting a material to be used as the shaping material, a supply flow path through which the shaping material supplied from the melting portion flows, a first branch flow path and a second branch flow path to which the shaping material is supplied from the supply flow path, a coupling portion coupling the supply flow path with the first branch flow path and the second branch flow path, a first nozzle communicating with the first branch flow path and a second nozzle communicating with the second branch flow path, and a valve mechanism provided in the coupling portion, a melting portion melting a material to be used as the shaping material, a supply flow path through which the shaping material supplied from the melting portion flows, a first branch flow path and a second branch flow path to which the shaping material is supplied from the supply flow path, a coupling portion coupling the supply flow path with the first branch flow path and the second branch flow path, a first nozzle communicating with the first branch flow path and a second nozzle communicating with the second branch flow path, and a valve mechanism provided in the coupling portion, the first nozzle and the second nozzle are disposed in a direction in which a central axis of the first nozzle and a central axis of the second nozzle are separated from each other as going toward the table, the control portion controls the valve mechanism of the discharge mechanism to switch between a first state in which the supply flow path and the first branch flow path communicate with each other and the supply flow path and the second branch flow path are blocked from each other and a second state in which the supply flow path and the second branch flow path communicate with each other and the supply flow path and the first branch flow path are blocked from each other, and the control portion controls the tilting mechanism so that in the first state, the first nozzle is brought closer to the table than the second nozzle and in the second state, the second nozzle is brought closer to the table than the first nozzle.