A refrigerator with an ice making function, the refrigerator comprising a refrigerator door, a mounting bracket, an ice making assembly and main board, the mounting bracket being fixedly disposed on an inner surface of the refrigerator door, the mounting bracket being configured to mount the ice making assembly, and the mounting bracket including a first surface facing the refrigerator door, and a second surface opposite to the first surface, wherein a region on the second surface configured to mount the ice making assembly is a mounting region, and a region on the second surface configured to form a wiring groove is an edge region, wherein the wiring groove corresponds to a position of the edge region where the ice making assembly is not mounted, the edge region is disposed on at least one side of a periphery of the mounting region, and at least a portion of the first surface corresponding to the mounting region is in close contact with the inner surface of the refrigerator door; wires of the ice making assembly are connected to the main board of the cabinet of the refrigerator through a wire connector on the refrigerator door after passing through the wiring groove; the wiring groove being formed on an edge of the mounting bracket, and the wiring groove being recessed in a direction from the first surface to the second surface, and/or, the wiring groove being formed in the inner surface of the refrigerator door at a position corresponding to the edge of the mounting bracket, and the wiring groove being recessed in a direction from the inner surface of the refrigerator door to an outer surface of the refrigerator door; wherein the edge of the mounting bracket includes an upper edge located on an upper portion of the mounting bracket, a left edge located on a left side of the mounting bracket, and a right edge located on a right side of the mounting bracket; characterized in that the wiring groove includes an upper wiring groove corresponding to the upper edge, a left wiring groove corresponding to the left edge and a right wiring groove corresponding to the right edge; two ends of the upper wiring groove are respectively communicated with the left wiring groove and the right wiring groove. the edge region is disposed on at least one side of a periphery of the mounting region, and at least a portion of the first surface corresponding to the mounting region is in close contact with the inner surface of the refrigerator door; wires of the ice making assembly are connected to the main board of the cabinet of the refrigerator through a wire connector on the refrigerator door after passing through the wiring groove; the wiring groove being formed on an edge of the mounting bracket, and the wiring groove being recessed in a direction from the first surface to the second surface, and/or, the wiring groove being formed in the inner surface of the refrigerator door at a position corresponding to the edge of the mounting bracket, and the wiring groove being recessed in a direction from the inner surface of the refrigerator door to an outer surface of the refrigerator door; wherein the edge of the mounting bracket includes an upper edge located on an upper portion of the mounting bracket, a left edge located on a left side of the mounting bracket, and a right edge located on a right side of the mounting bracket; characterized in that the wiring groove includes an upper wiring groove corresponding to the upper edge, a left wiring groove corresponding to the left edge and a right wiring groove corresponding to the right edge; two ends of the upper wiring groove are respectively communicated with the left wiring groove and the right wiring groove.