The present invention pertains to a set of two polypeptides to be used in light-dependent gene recombination wherein an N-terminal fragment and a C-terminal fragment of Cre protein having the amino acid sequence of SEQ ID NO: 1 bind respectively to two proteins for light-dependently forming a dimer.