An optical device, comprising an optical component and another optical component, wherein the optical component comprises a two-dimensional fiber array and a compensation block, wherein: an end face of the two-dimensional fiber array comprising layers of fibers is arranged to be obliquely polished as a whole, the compensation block is disposed between the two-dimensional fiber array and the other optical component, the layers of fibers are arranged both above and below a central optical axis of the optical component; any two light beams that pass through the two-dimensional fiber array and are emitted from the obliquely polished end face of the two-dimensional fiber array are incident to an end face of the compensation block in parallel, and are incident to an end face of the other optical component in parallel after being refracted by another end face of the compensation block; a length λ1 of a path along which a first incident light beam is emitted from the obliquely polished end face of the two-dimensional fiber array, passes through the compensation block, and reaches the end face of the other optical component is equal to a length λ2 of a path along which a second incident light beam is emitted from the obliquely polished end face of the two-dimensional fiber array, passes through the compensation block, and reaches the end face of the other optical component, wherein a length λ of a path along which any light beam is emitted from the obliquely polished end face of the two-dimensional fiber array, passes through the compensation block, and reaches the end face of the other optical component is obtained through calculation according to a formula λ= L1+(L2/n)+L3, wherein L1 is a length of a path along which any outgoing light beam of the obliquely polished end face of the two-dimensional fiber array is incident from the obliquely polished end face to the end face of the compensation block, L2 is a length of a path along which the outgoing light beam passes through the compensation block, L3 is a length of a path along which the outgoing light beam is incident from the another end face of the compensation block to the other optical component, and n is a refractive index of the compensation block. an end face of the two-dimensional fiber array comprising layers of fibers is arranged to be obliquely polished as a whole, the compensation block is disposed between the two-dimensional fiber array and the other optical component, the layers of fibers are arranged both above and below a central optical axis of the optical component; any two light beams that pass through the two-dimensional fiber array and are emitted from the obliquely polished end face of the two-dimensional fiber array are incident to an end face of the compensation block in parallel, and are incident to an end face of the other optical component in parallel after being refracted by another end face of the compensation block; a length λ1 of a path along which a first incident light beam is emitted from the obliquely polished end face of the two-dimensional fiber array, passes through the compensation block, and reaches the end face of the other optical component is equal to a length λ2 of a path along which a second incident light beam is emitted from the obliquely polished end face of the two-dimensional fiber array, passes through the compensation block, and reaches the end face of the other optical component, wherein a length λ of a path along which any light beam is emitted from the obliquely polished end face of the two-dimensional fiber array, passes through the compensation block, and reaches the end face of the other optical component is obtained through calculation according to a formula λ= L1+(L2/n)+L3, wherein L1 is a length of a path along which any outgoing light beam of the obliquely polished end face of the two-dimensional fiber array is incident from the obliquely polished end face to the end face of the compensation block, L2 is a length of a path along which the outgoing light beam passes through the compensation block, L3 is a length of a path along which the outgoing light beam is incident from the another end face of the compensation block to the other optical component, and n is a refractive index of the compensation block.