An optical connector connectable to a coupling target, the optical connector comprising: a plurality of optical coupling members, each of which is provided with: a hold member including a lens, an optical fiber and a storage portion, configured to store the lens, which is formed at one end of the hold member facing the coupling target, and an insertion hole, into which the optical fiber is inserted, at the other end of the hold member, and a first member provided on an outer periphery at one end portion of the hold member facing the coupling target and configured to generate a force to align a center of the lens with a center of an optical element provided in the coupling target; the optical connector further comprising a shift regulation member, configured to regulate a shift of the plurality of optical coupling members, while permitting an alignment operation of the plurality of optical coupling members with the coupling target; and a case, in which is formed a storage space with an opening on the coupling target side for storing the optical coupling member and the shift regulation member, provided with a plurality of second members configured to generate a force to an end face on the coupling target side positioned outside the optical element, on an end face of the case facing the coupling target and positioned at an outer periphery of the opening, wherein each of the first members is respectively comprised of a magnet, wherein the magnet of at least one of the first members has a magnetic pole that is different from those of the remaining magnets of the first members, characterized in that each of the second members is respectively comprised of a magnet, wherein the magnet of at least one of the second members has a magnetic pole that is different from those of the remaining magnets of the second members. a plurality of optical coupling members, each of which is provided with: a hold member including a lens, an optical fiber and a storage portion, configured to store the lens, which is formed at one end of the hold member facing the coupling target, and an insertion hole, into which the optical fiber is inserted, at the other end of the hold member, and a first member provided on an outer periphery at one end portion of the hold member facing the coupling target and configured to generate a force to align a center of the lens with a center of an optical element provided in the coupling target; the optical connector further comprising a shift regulation member, configured to regulate a shift of the plurality of optical coupling members, while permitting an alignment operation of the plurality of optical coupling members with the coupling target; and a hold member including a lens, an optical fiber and a storage portion, configured to store the lens, which is formed at one end of the hold member facing the coupling target, and an insertion hole, into which the optical fiber is inserted, at the other end of the hold member, and a first member provided on an outer periphery at one end portion of the hold member facing the coupling target and configured to generate a force to align a center of the lens with a center of an optical element provided in the coupling target; the optical connector further comprising a shift regulation member, configured to regulate a shift of the plurality of optical coupling members, while permitting an alignment operation of the plurality of optical coupling members with the coupling target; and a case, in which is formed a storage space with an opening on the coupling target side for storing the optical coupling member and the shift regulation member, provided with a plurality of second members configured to generate a force to an end face on the coupling target side positioned outside the optical element, on an end face of the case facing the coupling target and positioned at an outer periphery of the opening, wherein each of the first members is respectively comprised of a magnet, wherein the magnet of at least one of the first members has a magnetic pole that is different from those of the remaining magnets of the first members, characterized in that each of the second members is respectively comprised of a magnet, wherein the magnet of at least one of the second members has a magnetic pole that is different from those of the remaining magnets of the second members.