A charge-transfer complex is a molecular structure formed when an electron donor molecule and an electron acceptor molecule interact, resulting in a partial transfer of charge between them. This interaction can lead to unique optical and electronic properties, making these complexes important in fields like organic electronics and photovoltaics.