the present invention discloses a refrigerator and relates to the technical field of refrigerators . the refrigerator is invented to settle problems , such as increased external space occupied by a refrigerator when its secondary door is opened , increased difficulty in fetching goods in the refrigerator , and heavy loss of cooling capacity resulted from the full opening of an opening . the inventive refrigerator comprises a main door ; an opening is formed on a door body of the main door ; a guide rail is provided at an edge of the opening , and a secondary door is fitted on the guide rail ; and the secondary door is connected with a driving mechanism which can drive the secondary door to slide along the guide rail , and as the secondary door slides along the guide rail , the secondary door can enclose or open the opening . the refrigerator of the present invention is used for preserving and freezing foods .