A waste liquid container that is coupled in a removable manner to a device that includes a retaining compartment and a discharge unit, which is located at an innermost part of the retaining compartment, wherein the waste liquid container is adapted to be inserted into the retaining compartment in a direction defined as an insertion direction, the waste liquid container is adapted to be removed from the retaining compartment in a direction that is opposite to the insertion direction and defined as a removal direction, and the insertion direction and a vertical direction both are transverse to a direction defined as a lateral direction, the waste liquid container comprising: a collection compartment located inside the waste liquid container, wherein the discharge unit discharges waste liquid into the collection compartment when the waste liquid container is in a retained state inserted into the retaining compartment; a front wall located at an innermost part of the retaining compartment in the retained state; a fitted portion located in the front wall, wherein the discharge unit is fittable to and removable from the fitted portion; a side wall (55, 56) that extends in the removal direction from the front wall in the retained state; a container connection terminal located in the side wall (55, 56) at a position lower than the fitted portion, wherein the container connection terminal is contactable with a connection terminal of the device; an insertion restriction portion configured to restrict movement of the waste liquid container in the insertion direction when contacting a contact portion of the device in the retained state; and characterized by an engaged portion including a contacted portion configured to restrict movement of the waste liquid container in the removal direction when contacting a removal restriction unit of the device in the retained state, wherein the engaged portion is located toward an inner side in the lateral direction from the side wall (55, 56) at a position lower than both of the container connection terminal and the insertion restriction portion in the retained state, and the removal restriction unit is receivable in a region located toward an outer side in the lateral direction from the engaged portion when in the retained state. a collection compartment located inside the waste liquid container, wherein the discharge unit discharges waste liquid into the collection compartment when the waste liquid container is in a retained state inserted into the retaining compartment; a front wall located at an innermost part of the retaining compartment in the retained state; a fitted portion located in the front wall, wherein the discharge unit is fittable to and removable from the fitted portion; a side wall (55, 56) that extends in the removal direction from the front wall in the retained state; a container connection terminal located in the side wall (55, 56) at a position lower than the fitted portion, wherein the container connection terminal is contactable with a connection terminal of the device; an insertion restriction portion configured to restrict movement of the waste liquid container in the insertion direction when contacting a contact portion of the device in the retained state; and characterized by an engaged portion including a contacted portion configured to restrict movement of the waste liquid container in the removal direction when contacting a removal restriction unit of the device in the retained state, wherein the engaged portion is located toward an inner side in the lateral direction from the side wall (55, 56) at a position lower than both of the container connection terminal and the insertion restriction portion in the retained state, and the removal restriction unit is receivable in a region located toward an outer side in the lateral direction from the engaged portion when in the retained state.