The invention provides a solar cell and a cell module, and relates to the field of photovoltaic technology. The solar cell comprises a PN junction, the PN junction is formed by a base body layer and an inversion layer, the inversion layer is provided with a first heavily doped region, and the first heavily doped region extends into the inversion layer from the side, away from the base body layer, of the inversion layer; the thickness difference between the inversion layer and the first heavily doped region is 1-100 nm in the direction away from the substrate layer; and at room temperature Tm, the first heavily doped region forms a weak degenerate or degenerate semiconductor, the rest part of the inversion layer and the matrix layer are non-degenerate semiconductors, and the weak degenerate or degenerate semiconductor is set as follows: the energy level difference between the Fermi energy level and the conduction band bottom of the n-type semiconductor or the conduction band top of the p-type semiconductor is less than 2kB * Tm. Under the condition that reverse voltage is applied, the PN junction can serve as a tunnel junction, tunnel current is formed in the PN junction, reverse conduction is achieved, and a battery string does not need to be connected with a bypass diode in parallel; when abnormity occurs, normal current is allowed to pass through the rest of the solar cells in the cell string, current loss is low, and heat is little.