A method for producing a secondary battery that comprises: an electrode body comprising a positive electrode and a negative electrode; a battery case that accommodates the electrode body; a terminal (30, 40) electrically connected to the positive electrode or the negative electrode, and attached to the battery case; and an external conductive member having a through-hole, and joined to the terminal (30, 40) outside the battery case; the method comprising: an attachment step of attaching the terminal (30, 40) to the battery case; an arrangement step of arranging part of the terminal which is attached to the battery case, within the through-hole of the external conductive member; a covering step of, after the arrangement step, covering at least part of an upper surface of the external conductive member with a cover member; and a joining step of, after the covering step, joining the external conductive member and the terminal through irradiation with energy rays, wherein the external conductive member comprises a substantially annular recess, sunk from the upper surface of the external conductive member, around the through-hole; in a plan view, a shortest distance W1 from a peripheral edge of the through-hole up to the outer peripheral edge of the recess is 2 mm or larger; and in the joining step, in a cross-sectional view along a direction of penetration into the through-hole, the external conductive member and the terminal are joined in a state where an edge portion of the cover member is disposed between a planned joint portion of the external conductive member and the terminal, and an outer peripheral edge of the recess. an electrode body comprising a positive electrode and a negative electrode; a battery case that accommodates the electrode body; a terminal (30, 40) electrically connected to the positive electrode or the negative electrode, and attached to the battery case; and an external conductive member having a through-hole, and joined to the terminal (30, 40) outside the battery case; the method comprising: an attachment step of attaching the terminal (30, 40) to the battery case; an arrangement step of arranging part of the terminal which is attached to the battery case, within the through-hole of the external conductive member; a covering step of, after the arrangement step, covering at least part of an upper surface of the external conductive member with a cover member; and a joining step of, after the covering step, joining the external conductive member and the terminal through irradiation with energy rays, wherein the external conductive member comprises a substantially annular recess, sunk from the upper surface of the external conductive member, around the through-hole; in a plan view, a shortest distance W1 from a peripheral edge of the through-hole up to the outer peripheral edge of the recess is 2 mm or larger; and in the joining step, in a cross-sectional view along a direction of penetration into the through-hole, the external conductive member and the terminal are joined in a state where an edge portion of the cover member is disposed between a planned joint portion of the external conductive member and the terminal, and an outer peripheral edge of the recess. an attachment step of attaching the terminal (30, 40) to the battery case; an arrangement step of arranging part of the terminal which is attached to the battery case, within the through-hole of the external conductive member; a covering step of, after the arrangement step, covering at least part of an upper surface of the external conductive member with a cover member; and a joining step of, after the covering step, joining the external conductive member and the terminal through irradiation with energy rays, wherein the external conductive member comprises a substantially annular recess, sunk from the upper surface of the external conductive member, around the through-hole; in a plan view, a shortest distance W1 from a peripheral edge of the through-hole up to the outer peripheral edge of the recess is 2 mm or larger; and in the joining step, in a cross-sectional view along a direction of penetration into the through-hole, the external conductive member and the terminal are joined in a state where an edge portion of the cover member is disposed between a planned joint portion of the external conductive member and the terminal, and an outer peripheral edge of the recess.