An optical fiber connector,, comprising a main shaft,, a connecting piece,, and a lock cap,, wherein the main shaft,, comprises a head end,, and a tail end,, that is away from the head end,, a through hole,, extending from the head end,, to the tail end,, is disposed in the main shaft,, the connecting piece,, is fixedly connected to the head end,, and partially accommodated in the through hole,, the lock cap,, comprises a sealing portion,, and a connection portion,, that is connected to a side of the sealing portion,, the sealing portion,, is rotationally connected to an outer side of the head end,, the connection portion,, is located on a side that is of the head end,, and that is away from the tail end,, the connection portion,, is configured to partially accommodate an adapter,, when the connecting piece,, is inserted into the adapter,, a lock protrusion,, is disposed on an inner side of the connection portion,, and the lock protrusion,, is configured to be snap-fitted to a lock slot,, of the adapter,, when the lock cap,, is rotated by a first angle relative to the adapter,, wherein the first angle is less than or equal to 90°; characterised in that the connecting piece,, comprises a connection base,, and one or more connection terminals,, one end of the connection base,, is inserted into the through hole,, and the one or more connection terminals,, are fastened to the other end of the connection base, 311; wherein the connection base,, comprises a fastening portion,, and one or more mounting portions,, located on a side of the fastening portion,, the one or more mounting portions,, are partially inserted into the one or more connection terminals,, in a one-to-one correspondence manner, and the fastening portion,, and the one or more mounting portions,, are integrally formed; wherein two lugs,, are disposed on a top that is of the head end,, two limiting blocks,, of the two lugs,, are bent towards each other and wherein the two lugs are disposed opposite each other; and wherein a locating plane,, facing the one or more mounting portions,, is disposed on the fastening portion,, when the connection base,, of the connecting piece,, is mounted to the main shaft,, the two limiting blocks,, on the two lugs,, of the head end,, of the main shaft,, are snap-fitted to the locating plane,. the connecting piece,, comprises a connection base,, and one or more connection terminals,, one end of the connection base,, is inserted into the through hole,, and the one or more connection terminals,, are fastened to the other end of the connection base, 311; wherein the connection base,, comprises a fastening portion,, and one or more mounting portions,, located on a side of the fastening portion,, the one or more mounting portions,, are partially inserted into the one or more connection terminals,, in a one-to-one correspondence manner, and the fastening portion,, and the one or more mounting portions,, are integrally formed; wherein two lugs,, are disposed on a top that is of the head end,, two limiting blocks,, of the two lugs,, are bent towards each other and wherein the two lugs are disposed opposite each other; and wherein a locating plane,, facing the one or more mounting portions,, is disposed on the fastening portion,, when the connection base,, of the connecting piece,, is mounted to the main shaft,, the two limiting blocks,, on the two lugs,, of the head end,, of the main shaft,, are snap-fitted to the locating plane,.