The invention discloses a photoelectric co-packaging structure and a forming method thereof, and the forming method comprises the steps: providing a
photon chip which comprises a first surface and a second surface which are opposite, and the first surface is provided with a bonding pad and an
optical coupling port located at one side of the bonding pad; forming a protective layer covering the
optical coupling port, wherein the protective layer exposes the bonding pad; after the
protection layer is formed, forming a first
welding bump on the bonding pad; an initial packaging panel is provided, the initial packaging panel comprises a third surface and a fourth surface which are opposite to each other, an
electronic chip is arranged in the initial packaging panel, the third surface of the initial packaging panel is provided with a first wiring layer, and the
electronic chip is electrically connected with the first wiring layer; inversely mounting the
photon chip on the first wiring layer, and
welding the first
welding bump with the first wiring layer; an optical interface device is installed on one side of the
photon chip, and the optical interface device is right opposite to the
optical coupling port; and after the optical interface device is installed, the
protection layer is removed, and the optical
coupling port is exposed. And the optical
coupling port is prevented from being damaged and polluted in the whole packaging process.