A liquid discharge head comprising: a nozzle plate having a discharge port from which a liquid is discharged; and a valve facing the nozzle plate, the valve configured to open and close the discharge port, the valve including: a core; and an elastic member attached to the core, wherein the core has a recess, and the recess has: an opening rim on a leading end of the core, the opening rim defining an opening of the recess, and the opening opening toward the discharge port in a depth direction of the recess; a bottom face opposite to the opening rim in the depth direction; and a retaining portion having a width wider than a width of a portion other than the retaining portion of the recess in a width direction orthogonal to the depth direction, the retaining portion disposed in a rear region between the bottom face and a center of the recess in the depth direction, and the elastic member includes: a first portion fitted into the recess; and a second portion projecting from the opening of the recess toward the discharge port in the depth direction, characterized in that the retaining portion has a plurality of grooves in the rear region, the plurality of grooves extending in the depth direction, and the recess further has a straight portion between the plurality of grooves and the bottom face, the straight portion having a width constant in the depth direction. a nozzle plate having a discharge port from which a liquid is discharged; and a valve facing the nozzle plate, the valve configured to open and close the discharge port, the valve including: a core; and an elastic member attached to the core, a core; and an elastic member attached to the core, wherein the core has a recess, and the recess has: an opening rim on a leading end of the core, the opening rim defining an opening of the recess, and the opening opening toward the discharge port in a depth direction of the recess; a bottom face opposite to the opening rim in the depth direction; and a retaining portion having a width wider than a width of a portion other than the retaining portion of the recess in a width direction orthogonal to the depth direction, the retaining portion disposed in a rear region between the bottom face and a center of the recess in the depth direction, and an opening rim on a leading end of the core, the opening rim defining an opening of the recess, and the opening opening toward the discharge port in a depth direction of the recess; a bottom face opposite to the opening rim in the depth direction; and a retaining portion having a width wider than a width of a portion other than the retaining portion of the recess in a width direction orthogonal to the depth direction, the retaining portion disposed in a rear region between the bottom face and a center of the recess in the depth direction, and the elastic member includes: a first portion fitted into the recess; and a second portion projecting from the opening of the recess toward the discharge port in the depth direction, a first portion fitted into the recess; and a second portion projecting from the opening of the recess toward the discharge port in the depth direction, characterized in that the retaining portion has a plurality of grooves in the rear region, the plurality of grooves extending in the depth direction, and the recess further has a straight portion between the plurality of grooves and the bottom face, the straight portion having a width constant in the depth direction.