The invention relates to the technical field of optical network communication, in particular to a tunable multi-loop multi-system optical buffer based on an N*N optical switch matrix, comprising an N*N optical switch matrix, an optical switch control module and N-1 optical delayers, wherein the delay time of the N-1 optical delayers is designed to be K times with each other, i.e. the delay time meets a K system relation; if rotation cycles of light in each loop are respective n1, n2, ..., n<N-1>, the total delay time of the buffer is T=n1d1+n2d2+...+n<N-1>d<N-1>, and the least delay time of the optical delayer can be designed by adjustable least precision according to the requirements. The adjusting speed of the optical buffer can reach nanosecond class high-speed response, the adjusting precision is high and stable, and the large dynamic adjusting range can be realized; and the optical buffer has simple structure, low cost and high reliability. The optical buffer capable of flexibly tuning in the large dynamic range has a practical meaning in optical packet switching, all-optical calculation, optical information processing and optical synchronous time slot alignment.